You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
define('liquid-fire/ember-internals',['exports','ember'],function(exports,Ember){'use strict';exports.containingElement=containingElement;exports.makeHelperShim=makeHelperShim;exports.inverseYieldHelper=inverseYieldHelper;exports.inverseYieldMethod=inverseYieldMethod;exports.routeName=routeName;exports.routeModel=routeModel;// Given an Ember.View, return the containing elementvarget=Ember['default'].get;varset=Ember['default'].set;functioncontainingElement(view){returnview._morph.contextualElement;}functionmakeHelperShim(componentName,tweak){return{isHTMLBars: true,helperFunction: functionliquidFireHelper(params,hash,options,env){varview=env.data.view;varcomponentLookup=view.container.lookup("component-lookup:main");varcls=componentLookup.lookupFactory(componentName);hash.value=params[0];if(hash["class"]){hash.innerClass=hash["class"];deletehash["class"];}if(hash.id){hash.innerId=hash.id;deletehash.id;}hash.tagName="";if(tweak){tweak(params,hash,options,env);}env.helpers.view.helperFunction.call(view,[cls],hash,options,env);}};}functioninverseYieldHelper(params,hash,options,env){varview=env.data.view;while(view&&!get(view,"layout")){if(view._contextView){view=view._contextView;}else{view=view._parentView;}}returnview._yieldInverse(env.data.view,env,options.morph,params);}functioninverseYieldMethod(context,options,morph,blockArguments){varview=options.data.view;varparentView=this._parentView;vartemplate=get(this,"inverseTemplate");if(template){view.appendChild(Ember['default'].View,{isVirtual: true,tagName: "",template: template,_blockArguments: blockArguments,_contextView: parentView,_morph: morph,context: get(parentView,"context"),controller: get(parentView,"controller")});}}// This lets us hook into the outlet state.varOutletBehavior={_isOutlet: true,init: functioninit(){this._super();this._childOutlets=[];// Our outlet state is named differently than a normal ember// outlet ("_outletState"), so that our child outlets don't// automatically discover it. Instead we will always push state// down to them, so we can version it as we wish.this.outletState=null;},setOutletState: functionsetOutletState(state){if(state.render&&state.render.controller&&!state._lf_model){// This is a hack to compensate for Ember 1.0's remaining use of// mutability within the route state -- the controller is a// singleton whose model will keep changing on us. By locking it// down the first time we see the state, we can more closely// emulate ember 2.0 semantics.//// The Ember 2.0 component attributes shouldn't suffer this// problem and we can eventually drop the hack.state=Ember['default'].copy(state);state._lf_model=get(state.render.controller,"model");}if(!this._diffState(state)){varchildren=this._childOutlets;for(vari=0;i<children.length;i++){varchild=children[i];child.setOutletState(state);}}},_diffState: function_diffState(state){while(state&&emptyRouteState(state)){state=state.outlets.main;}vardifferent=!sameRouteState(this.outletState,state);if(different){set(this,"outletState",state);}returndifferent;},_parentOutlet: function_parentOutlet(){varparent=this._parentView;while(parent&&!parent._isOutlet){parent=parent._parentView;}returnparent;},_linkParent: Ember['default'].on("init","parentViewDidChange",function(){varparent=this._parentOutlet();if(parent){this._parentOutletLink=parent;parent._childOutlets.push(this);if(parent._outletState&&parent._outletState.outlets[this._outletName]){this.setOutletState(parent._outletState.outlets[this._outletName]);}}}),willDestroy: functionwillDestroy(){if(this._parentOutletLink){this._parentOutletLink._childOutlets.removeObject(this);}this._super();}};functionemptyRouteState(state){return!state.render.ViewClass&&!state.render.template;}functionsameRouteState(a,b){if(!a&&!b){returntrue;}if(!a||!b){returnfalse;}a=a.render;b=b.render;for(varkeyina){if(a.hasOwnProperty(key)){// name is only here for logging & debugging. If two different// names result in otherwise identical states, they're still// identical.if(a[key]!==b[key]&&key!=="name"){returnfalse;}}}returntrue;}// This lets us invoke an outlet with an explicitly passed outlet// state, rather than inheriting it implicitly from its context.varStaticOutlet=Ember['default'].OutletView.superclass.extend({tagName: "",setStaticState: Ember['default'].on("init",Ember['default'].observer("staticState",function(){this.setOutletState(this.get("staticState"));}))});functionrouteName(routeState){if(routeState&&routeState.render){return[routeState.render.name];}}functionrouteModel(routeState){if(routeState){return[routeState._lf_model];}}exports.OutletBehavior=OutletBehavior;exports.StaticOutlet=StaticOutlet;});
Versions
EBUG: -------------------------------
ember.debug.js:4930DEBUG: Ember : 1.13.0-beta.1+canary.ffedc10e
ember.debug.js:4930DEBUG: Ember Data : 1.0.0-beta.17+canary.5887afe8a1
ember.debug.js:4930DEBUG: jQuery : 2.1.3
ember.debug.js:4930DEBUG: -------------------------------
ember-internals.js
Versions
package.json
My code
routes/application.js
application.hbs
my-modal.hbs
Hope that helps.
The text was updated successfully, but these errors were encountered: