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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -