The chain ends with a call to the value() method which simply returns the resulting array value. The chain() method returns an object that has all of the Underscore array operations attached as methods which return that object. Ive also set some default attributes, in case no. Chaining is common idiom on object-oriented languages.Ī chain is a sequence of method calls on the same objects that are performed is a single statement. What functions can we use in Backbone Local.Storage Local.Storage gives us an opportunity to: set (setItem function, which stores data), get (getItem. In the above code, Ive defined the initialize function which will be fired when the model is created.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |