javascript - Collections in Spine.js -
i need support collections in spine.js. know spine.js doesn't support @ moment - not sure if ever will.
has added feature or know best way go implementing it?
this feature built in.
collections class methods on model. recommended way add few methods model.
if need different class related collection (because used ir ot something) can create new 1 inherits original model , add classmethods there.
sample: (check console output) http://jsfiddle.net/spobo/vbtkc/
i have moved published class method post model , have worked without need of postcollection class. choice :)
Comments
Post a Comment