text: define("mvc/visualization/visualization-model",[],function(){"use strict";var t=Backbone.Model.extend({defaults:{config:{}},urlRoot:function(){return Galaxy.root+"api/visualizations"},initialize:function(t){_.isObject(t.config)&&_.isObject(this.defaults.config)&&_.defaults(t.config,this.defaults.config),this._setUpListeners()},_setUpListeners:function(){},set:function(t,i){if("config"===t){var n=this.get("config");_.isObject(n)&&(i=_.extend(_.clone(n),i))}return Backbone.Model.prototype.set.call(this,t,i),this},toString:function(){var t=this.get("id")||"";return this.get("title")&&(t+=":"+this.get("title")),"Visualization("+t+")"}});Backbone.Collection.extend({model:t,url:function(){return Galaxy.root+"api/visualizations"},initialize:function(t,i){i=i||{}},set:function(t,i){var n=this;t=_.map(t,function(t){var i=n.get(t.id);if(!i)return t;var e=i.toJSON();return _.extend(e,t),e}),Backbone.Collection.prototype.set.call(this,t,i)},toString:function(){return["VisualizationCollection(",[this.historyId,this.length].join(),")"].join("")}})});
  //# sourceMappingURL=../../../maps/mvc/visualization/visualization-model.js.map
  