[IMP] add warning re. changed behavior of backbone which may be changed in the client

bzr revid: xmo@openerp.com-20131202151838-z26qnz0xpt3tigrd
This commit is contained in:
Xavier Morel 2013-12-02 16:18:38 +01:00
parent 0dff8277cc
commit ef08d834f6
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ my.SearchQuery = B.Collection.extend({
}
B.Collection.prototype.add.call(this, model, options);
}, this);
// warning: in backbone 1.0+ add is supposed to return the added models,
// but here toggle may delegate to add and return its value directly.
// return value of neither seems actually used but should be tested
// before change, probably
return this;
},
toggle: function (value, options) {