UNPKG

dl

Version:

DreamLab Libs

29 lines (23 loc) 615 B
var Class = require("core").Class; var CdfContainer = require('./CdfContainer.js').CdfContainer; /** * @class CdfInserts */ var CdfInserts = function () { this.Extends = CdfContainer; /** * @ignore */ this.initialize = function () { this.parent(); }; this.getById = function (id) { for(var i = 0, max = this._models.length; i < max; i++){ if (this._models[i].src == id) { return this._models[i]; } } }; }; CdfInserts = new Class(new CdfInserts()); exports.CdfInserts = CdfInserts;