You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fahimc edited this page Apr 15, 2013
·
3 revisions
Model(data)(Optional) The constructor can take in an object that is will inject the values and keys into the model. set(name,value): You can set a new variable by providing the name of the variable as a string and then the value which can be anything. get(name): You can get a value by providing the name of the variable as a string. remove(name): You can remove a variable by providing the name of the variable as a string. init(data): If you extend this Class this is called to pass the constructor parameter object.