mirror of https://github.com/artf/grapesjs.git
2 changed files with 3 additions and 27 deletions
@ -1,24 +0,0 @@ |
|||||
var Backbone = require('backbone'); |
|
||||
|
|
||||
module.exports = Backbone.Collection.extend({ |
|
||||
|
|
||||
initialize(models, opt) { |
|
||||
|
|
||||
this.model = function(attrs, opts) { |
|
||||
var model; |
|
||||
|
|
||||
switch(1){ |
|
||||
|
|
||||
default: |
|
||||
if(!this.ClassTag) |
|
||||
this.ClassTag = require("selector_manager/model/Selector"); |
|
||||
model = new this.ClassTag(attrs, opts); |
|
||||
|
|
||||
} |
|
||||
|
|
||||
return model; |
|
||||
}; |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
}); |
|
||||
Loading…
Reference in new issue