i=c.collectionType,g,j,n,m;if(b[d]){g=f.result(b,d);e&&f.isString(e)&&(e=eval(e));i&&f.isString(i)&&(i=eval(i));j=c.options?f.extend({},c.options,a):a;if(c.type===h.Many){if(i&&!i.prototypeinstanceofl)throwError("collectionType must inherit from Backbone.Collection");if(ginstanceofl)n=g;else{n=i?newi:this._createCollection(e);n.add(g,j)}b[d]=n}elseif(c.type===h.One&&e){n=ginstanceofo?g:newe(g);b[d]=n}if((m=n)&&!m._proxyCallback){m._proxyCallback=function(){returnthis._bubbleEvent.call(this,
j:"");d[0]=k+":"+j;if(g){if(i=f.find(g,function(a,b){returnj.indexOf(b,j.length-b.length)!==-1}))returnthis}elseg=a._proxyCalls={};g[j]=true;if("change"===k){this._previousAttributes[b]=a._previousAttributes;this.changed[b]=a}this.trigger.apply(this,d);j&&g&&deleteg[j];returnthis},_createCollection:function(b){vara=b;f.isString(a)&&(a=eval(a));if(a&&a.prototypeinstanceofo){b=newl;b.model=a}elsethrowError("type must inherit from Backbone.AssociatedModel");returnb},toJSON:function(b){vara,