mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 16:56:30 -06:00
Fixed few typos/issues in the datamodel.js
This commit is contained in:
parent
8dd8fc57a4
commit
2d8633d4ca
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user