Fixed few typos/issues in the datamodel.js

This commit is contained in:
Khushboo Vashi 2016-04-18 12:10:08 +05:30 committed by Ashesh Vashi
parent 8dd8fc57a4
commit 2d8633d4ca

View File

@ -221,12 +221,13 @@ function(_, pgAdmin, $, Backbone) {
delete obj;
} else if (obj instanceof Backbone.Collection) {
obj.each(function(m) {
if (m instanceof Bakbone.DataModel) {
if (m instanceof Backbone.DataModel) {
obj.reset();
obj.clear(opts);
}
});
Backbone.Collection.prototype.reset.apply(obj, {opts});
if (!(opts instanceof Array)){ opts = [opts] }
Backbone.Collection.prototype.reset.apply(obj, opts);
delete obj;
}
}