build/min/transistor-backbone.js in transistor-0.1.11 vs build/min/transistor-backbone.js in transistor-0.1.12
- old
+ new
@@ -1 +1 @@
-if(window.Transistor===undefined){window.Transistor={}}(function(k){var q=(function(){return function(h){var l,n,g,o,e,r,b,f,i,p;l=h.backbone;n=h.underscore;g=h.channel;o=h.radio;e=h.control;r=(function(){return{}}());b=new l.Collection();b.on('change',function(a,c){var d=n.clone(a.attributes),j=a.id;if(c.from_radiotower===undefined){if(!e){throw"BackboneCollection is not mutable by user. The model with id "+a.id+" has been changed";}else{delete d.id;e.update(g,j,d)}}});f={add:b.add,remove:b.remove,reset:b.reset,set:b.set};i={add:function(a){e.insert(g,a)},remove:function(a){e.remove(g,a.id)},set:function(a){e.set(g,a)}};i.reset=i.set;(function(d){var j=true,m=function(c){d[c]=(function(a){return function(){if(j){if(!e){throw"BackboneCollection is not mutable by user.";}else{i[a].apply(i,arguments)}}else{return f[a].apply(b,arguments)}}}(c))};f.asPublic=function(a){j=false;a();j=true};m('add');m('remove');m('reset');m('set')}(b));p=k.Binder({set:function(d){f.asPublic(function(){var a=[],c;for(c=0;c<d.length;c+=1){a.push(new l.Model(d[c]))}b.set(a)})},insert:function(a){f.asPublic(function(){b.add(new l.Model(a))})},update:function(c,d){f.asPublic(function(){var a=b.get(c);a.clear({silent:true});a.set(d,{from_radiotower:true})})},remove:function(c){f.asPublic(function(){var a=b.get(c);b.remove(a)})}});o.tune(g,p);return b}}());if(k.Backbone===undefined){k.Backbone={}}k.Backbone.Collection=q}(window.Transistor));
+if(window.Transistor===undefined){window.Transistor={}}(function(k){var r=(function(){return function(e){var l,o,h,p,f,s,b,g,i,q,n;l=e.backbone;o=e.underscore;h=e.channel;p=e.radio;f=e.control;s=(function(){return{}}());b=new l.Collection();b.on('change',function(a,c){var d=o.clone(a.attributes),j=a.id;if(c.from_radiotower===undefined){if(!f){throw"BackboneCollection is not mutable by user. The model with id "+a.id+" has been changed";}else{delete d.id;f.update(h,j,d)}}});g={add:b.add,remove:b.remove,reset:b.reset,set:b.set};i={add:function(a){f.insert(h,a)},remove:function(a){f.remove(h,a.id)},set:function(a){f.set(h,a)}};i.reset=i.set;(function(d){var j=true,m=function(c){d[c]=(function(a){return function(){if(j){if(!f){throw"BackboneCollection is not mutable by user.";}else{i[a].apply(i,arguments)}}else{return g[a].apply(b,arguments)}}}(c))};g.asPublic=function(a){j=false;a();j=true};m('add');m('remove');m('reset');m('set')}(b));n=function(d){g.asPublic(function(){var a=[],c;for(c=0;c<d.length;c+=1){a.push(new l.Model(d[c]))}b.set(a)})};q=k.Binder({init:function(a){n(a);if(e.on_init!==undefined){e.on_init(b)}},set:n,insert:function(a){g.asPublic(function(){b.add(new l.Model(a))})},update:function(c,d){g.asPublic(function(){var a=b.get(c);a.clear({silent:true});a.set(d,{from_radiotower:true})})},remove:function(c){g.asPublic(function(){var a=b.get(c);b.remove(a)})}});p.tune(h,q);return b}}());if(k.Backbone===undefined){k.Backbone={}}k.Backbone.Collection=r}(window.Transistor));
\ No newline at end of file