rotundasoftware / backbone.collectionView

Easily render backbone.js collections. In addition to managing model views, this class supports automatic selection of models in response to clicks, reordering models via drag and drop, and more.
http://rotundasoftware.github.io/backbone.collectionView/
Other
171 stars 27 forks source link

Apparently backbone.collectionView render method is overridden by backbone.View.render (I'm using backbone.layoutmanager) #82

Closed bedinsky closed 5 years ago

bedinsky commented 5 years ago

I'm using your backbone.collectionView (thanks for it!) but doing some debugging I realized that collectionView.render get somehow overridden. Please give me some clues. Stack navigation shows that backbone.View.render is called. If I rename method in render2 (i.e.), collection is rendered calling render2() I'm using AMD, backbone v1.0.0 I'm not an expert in backbone but I suspect that it could depend on backbone.layoutmanager v0.9.4

I see this exception on console adding an element

    at resolve (http://localhost:8080/vendor/backbone.layoutmanager.js:549:8)
    at (anonymous) (http://localhost:8080/vendor/backbone.layoutmanager.js:564:17)
    at fire (http://localhost:8080/vendor/jquery.js:3094:29)
    at add (http://localhost:8080/vendor/jquery.js:3140:6)
    at actuallyRender (http://localhost:8080/vendor/backbone.layoutmanager.js:560:21)
    at render (http://localhost:8080/vendor/backbone.layoutmanager.js:605:6)
    at _insertAndRenderModelView (http://localhost:8080/vendor/backbone.collectionView.js:528:32)
    at (anonymous) (http://localhost:8080/vendor/backbone.collectionView.js:639:10)
    at triggerEvents (http://localhost:8080/vendor/backbone.js:206:56)
    at trigger (http://localhost:8080/vendor/backbone.js:146:18)
    at _onModelEvent (http://localhost:8080/vendor/backbone.js:933:19)
    at triggerEvents (http://localhost:8080/vendor/backbone.js:207:57)
    at trigger (http://localhost:8080/vendor/backbone.js:147:21)
    at set (http://localhost:8080/vendor/backbone.js:726:27)
    at add (http://localhost:8080/vendor/backbone.js:635:18)
    at click #demoAddToCollectionButton (http://localhost:8080/app/orders/views/OrderFormView.js:109:41)