ember-source 2.18.0.beta.4 → 2.18.0.beta.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48093a35443606928ee14ca9446abfe51911144c3a0f0bf5f7c34fd89f6ce3fb
4
- data.tar.gz: 8ad78f4957c8817a3a70c071333788842f9ef81454493733d4e7d0341b09e472
3
+ metadata.gz: 15198c321605c8374bff2e4306539cb70f3b34d44597610100ea7a8d7293d539
4
+ data.tar.gz: 1e3215a55db80c5e61da6597829fa820d871e5e825ef18faa36bc1755f0226ec
5
5
  SHA512:
6
- metadata.gz: 758e941cceaf90b0413de8bcd909f61096c248bde45f75f1f3867fef5410d5992bd08e2a5f939526b745d05b3dec951a72e7af857f63cc0dabd38a80335ad692
7
- data.tar.gz: 8d5b94e865ee17fac805a99d4e756cb719c8c4662ebd00748a3df83134c8a246983f16c5870e41636cc349ce0b32d7abf462a70a372170d8178f65498d72e4f3
6
+ metadata.gz: cb507fcf541507b9bdb39b4770e3b3f179be01d2ce4d54f4fb06fdfafb3fa6321031505136a34ab30201e719130e0749cc39563950f9a843cb88ddcfce3c1490
7
+ data.tar.gz: 74c1d9ffe4b6d4833c6ff54a20a143e92001a247dd940bf317f63a766706cd5a2ab9272f8c2c070997252b82371ea48a55d904209a9c1d0c03c1cffd50b884ef
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 2.18.0-beta.4
9
+ * @version 2.18.0-beta.5
10
10
  */
11
11
 
12
12
  /*global process */
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 2.18.0-beta.4
9
+ * @version 2.18.0-beta.5
10
10
  */
11
11
 
12
12
  /*global process */
@@ -17346,7 +17346,7 @@ enifed('ember/features', ['exports', 'ember-environment', 'ember-utils'], functi
17346
17346
  enifed("ember/version", ["exports"], function (exports) {
17347
17347
  "use strict";
17348
17348
 
17349
- exports.default = "2.18.0-beta.4";
17349
+ exports.default = "2.18.0-beta.5";
17350
17350
  });
17351
17351
  enifed("handlebars", ["exports"], function (exports) {
17352
17352
  "use strict";
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 2.18.0-beta.4
9
+ * @version 2.18.0-beta.5
10
10
  */
11
11
 
12
12
  /*global process */
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 2.18.0-beta.4
9
+ * @version 2.18.0-beta.5
10
10
  */
11
11
 
12
12
  /*global process */
@@ -68940,7 +68940,7 @@ enifed('ember/tests/helpers/link_to_test', ['ember-babel', 'ember-console', 'int
68940
68940
  assert.equal(this.$('#about-link.do-not-want').length, 1, 'The link can apply a custom disabled class via bound param');
68941
68941
  };
68942
68942
 
68943
- _class.prototype['@test the {{link-to}} helper does not respond to clicks when disabled'] = function (assert) {
68943
+ _class.prototype['@test the {{link-to}} helper does not respond to clicks when disabledWhen'] = function (assert) {
68944
68944
  this.addTemplate('index', '\n {{#link-to "about" id="about-link" disabledWhen=true}}About{{/link-to}}\n ');
68945
68945
 
68946
68946
  this.visit('/');
@@ -68949,6 +68949,15 @@ enifed('ember/tests/helpers/link_to_test', ['ember-babel', 'ember-console', 'int
68949
68949
  assert.equal(this.$('h3:contains(About)').length, 0, 'Transitioning did not occur');
68950
68950
  };
68951
68951
 
68952
+ _class.prototype['@test the {{link-to}} helper does not respond to clicks when disabled'] = function (assert) {
68953
+ this.addTemplate('index', '\n {{#link-to "about" id="about-link" disabled=true}}About{{/link-to}}\n ');
68954
+
68955
+ this.visit('/');
68956
+ this.click('#about-link');
68957
+
68958
+ assert.equal(this.$('h3:contains(About)').length, 0, 'Transitioning did not occur');
68959
+ };
68960
+
68952
68961
  _class.prototype['@test the {{link-to}} helper responds to clicks according to its disabledWhen bound param'] = function (assert) {
68953
68962
  this.addTemplate('index', '\n {{#link-to "about" id="about-link" disabledWhen=disabledWhen}}About{{/link-to}}\n ');
68954
68963
 
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 2.18.0-beta.4
9
+ * @version 2.18.0-beta.5
10
10
  */
11
11
 
12
12
  /*global process */
@@ -64659,7 +64659,7 @@ enifed('ember/tests/helpers/link_to_test', ['ember-babel', 'ember-console', 'int
64659
64659
  assert.equal(this.$('#about-link.do-not-want').length, 1, 'The link can apply a custom disabled class via bound param');
64660
64660
  };
64661
64661
 
64662
- _class.prototype['@test the {{link-to}} helper does not respond to clicks when disabled'] = function (assert) {
64662
+ _class.prototype['@test the {{link-to}} helper does not respond to clicks when disabledWhen'] = function (assert) {
64663
64663
  this.addTemplate('index', '\n {{#link-to "about" id="about-link" disabledWhen=true}}About{{/link-to}}\n ');
64664
64664
 
64665
64665
  this.visit('/');
@@ -64668,6 +64668,15 @@ enifed('ember/tests/helpers/link_to_test', ['ember-babel', 'ember-console', 'int
64668
64668
  assert.equal(this.$('h3:contains(About)').length, 0, 'Transitioning did not occur');
64669
64669
  };
64670
64670
 
64671
+ _class.prototype['@test the {{link-to}} helper does not respond to clicks when disabled'] = function (assert) {
64672
+ this.addTemplate('index', '\n {{#link-to "about" id="about-link" disabled=true}}About{{/link-to}}\n ');
64673
+
64674
+ this.visit('/');
64675
+ this.click('#about-link');
64676
+
64677
+ assert.equal(this.$('h3:contains(About)').length, 0, 'Transitioning did not occur');
64678
+ };
64679
+
64671
64680
  _class.prototype['@test the {{link-to}} helper responds to clicks according to its disabledWhen bound param'] = function (assert) {
64672
64681
  this.addTemplate('index', '\n {{#link-to "about" id="about-link" disabledWhen=disabledWhen}}About{{/link-to}}\n ');
64673
64682
 
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 2.18.0-beta.4
9
+ * @version 2.18.0-beta.5
10
10
  */
11
11
 
12
12
  /*global process */
@@ -16491,7 +16491,6 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-met
16491
16491
  eventName: 'click',
16492
16492
  init: function () {
16493
16493
  this._super.apply(this, arguments);
16494
- this._isDisabled = false;
16495
16494
  // Map desired event name to invoke function
16496
16495
  var eventName = (0, _emberMetal.get)(this, 'eventName');
16497
16496
  this.on(eventName, this, this._invoke);
@@ -16507,12 +16506,13 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-met
16507
16506
  */
16508
16507
  disabled: (0, _emberMetal.computed)({
16509
16508
  get: function (_key) {
16509
+ // always returns false for `get` because (due to the `set` just below)
16510
+ // the cached return value from the set will prevent this getter from _ever_
16511
+ // being called after a set has occured
16510
16512
  return false;
16511
16513
  },
16512
16514
  set: function (_key, value) {
16513
- if (value !== undefined) {
16514
- this.set('_isDisabled', value);
16515
- }
16515
+ this._isDisabled = value;
16516
16516
  return value ? (0, _emberMetal.get)(this, 'disabledClass') : false;
16517
16517
  }
16518
16518
  }),
@@ -16595,7 +16595,7 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-met
16595
16595
  if ((0, _emberMetal.get)(this, 'bubbles') === false) {
16596
16596
  event.stopPropagation();
16597
16597
  }
16598
- if ((0, _emberMetal.get)(this, '_isDisabled')) {
16598
+ if (this._isDisabled) {
16599
16599
  return false;
16600
16600
  }
16601
16601
  if ((0, _emberMetal.get)(this, 'loading')) {
@@ -16842,25 +16842,9 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-met
16842
16842
  {{/link-to}}
16843
16843
  ```
16844
16844
 
16845
- any passed value to `disabled` will disable it except `undefined`.
16846
- to ensure that only `true` disable the `link-to` component you can
16847
- override the global behavior of `LinkComponent`.
16848
-
16849
- ```javascript
16850
- import LinkComponent from '@ember/routing/link-component';
16851
- import { computed } from '@ember/object';
16852
-
16853
- LinkComponent.reopen({
16854
- disabled: computed(function(key, value) {
16855
- if (value !== undefined) {
16856
- this.set('_isDisabled', value === true);
16857
- }
16858
- return value === true ? get(this, 'disabledClass') : false;
16859
- })
16860
- });
16861
- ```
16845
+ any truthy value passed to `disabled` will disable it except `undefined`.
16862
16846
 
16863
- see "Overriding Application-wide Defaults" for more.
16847
+ See "Overriding Application-wide Defaults" for more.
16864
16848
 
16865
16849
  ### Handling `href`
16866
16850
  `{{link-to}}` will use your application's Router to
@@ -17047,30 +17031,31 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-met
17047
17031
  check out inherited properties of `LinkComponent`.
17048
17032
 
17049
17033
  ### Overriding Application-wide Defaults
17050
- ``{{link-to}}`` creates an instance of `LinkComponent`
17051
- for rendering. To override options for your entire
17052
- application, reopen `LinkComponent` and supply the
17053
- desired values:
17054
17034
 
17055
- ``` javascript
17035
+ ``{{link-to}}`` creates an instance of `LinkComponent` for rendering. To
17036
+ override options for your entire application, export your customized
17037
+ `LinkComponent` from `app/components/link-to.js` with the desired overrides:
17038
+
17039
+ ```javascript
17040
+ // app/components/link-to.js
17056
17041
  import LinkComponent from '@ember/routing/link-component';
17057
17042
 
17058
- LinkComponent.reopen({
17043
+ export default LinkComponent.extend({
17059
17044
  activeClass: "is-active",
17060
17045
  tagName: 'li'
17061
17046
  })
17062
17047
  ```
17063
17048
 
17064
- It is also possible to override the default event in
17065
- this manner:
17049
+ It is also possible to override the default event in this manner:
17066
17050
 
17067
- ``` javascript
17051
+ ```javascript
17068
17052
  import LinkCompoennt from '@ember/routing/link-component';
17069
17053
 
17070
- LinkComponent.reopen({
17054
+ export default LinkComponent.extend({
17071
17055
  eventName: 'customEventName'
17072
17056
  });
17073
17057
  ```
17058
+
17074
17059
  @method link-to
17075
17060
  @for Ember.Templates.helpers
17076
17061
  @param {String} routeName
@@ -47735,7 +47720,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
47735
47720
  enifed("ember/version", ["exports"], function (exports) {
47736
47721
  "use strict";
47737
47722
 
47738
- exports.default = "2.18.0-beta.4";
47723
+ exports.default = "2.18.0-beta.5";
47739
47724
  });
47740
47725
  enifed("handlebars", ["exports"], function (exports) {
47741
47726
  "use strict";
@@ -1139,9 +1139,9 @@ n&&n[u.UPDATE]&&n[u.UPDATE]((0,i.get)(this,e))}},c.getAttr=function(e){return th
1139
1139
  return(0,n.readDOMAttr)(t,e)},c))
1140
1140
  m[s.NAME_KEY]="Ember.Component",m.reopenClass({isComponentFactory:!0,positionalParams:[]}),e["default"]=m}),e("ember-glimmer/components/checkbox",["exports","ember-metal","ember-glimmer/component","ember-glimmer/templates/empty"],function(e,t,n,r){"use strict"
1141
1141
  e["default"]=n["default"].extend({layout:r["default"],classNames:["ember-checkbox"],tagName:"input",attributeBindings:["type","checked","indeterminate","disabled","tabindex","name","autofocus","required","form"],type:"checkbox",disabled:!1,indeterminate:!1,didInsertElement:function(){this._super.apply(this,arguments),(0,t.get)(this,"element").indeterminate=!!(0,t.get)(this,"indeterminate")},change:function(){(0,t.set)(this,"checked",this.$().prop("checked"))}})}),e("ember-glimmer/components/link-to",["exports","ember-debug","ember-metal","ember-runtime","ember-views","ember-glimmer/component","ember-glimmer/templates/link-to"],function(e,t,n,r,i,o,s){"use strict"
1142
- var a=o["default"].extend({layout:s["default"],tagName:"a",currentWhen:(0,r.deprecatingAlias)("current-when",{id:"ember-routing-view.deprecated-current-when",until:"3.0.0"}),"current-when":null,title:null,rel:null,tabindex:null,target:null,activeClass:"active",loadingClass:"loading",disabledClass:"disabled",replace:!1,attributeBindings:["href","title","rel","tabindex","target"],classNameBindings:["active","loading","disabled","transitioningIn","transitioningOut"],eventName:"click",init:function(){this._super.apply(this,arguments),this._isDisabled=!1
1142
+ var a=o["default"].extend({layout:s["default"],tagName:"a",currentWhen:(0,r.deprecatingAlias)("current-when",{id:"ember-routing-view.deprecated-current-when",until:"3.0.0"}),"current-when":null,title:null,rel:null,tabindex:null,target:null,activeClass:"active",loadingClass:"loading",disabledClass:"disabled",replace:!1,attributeBindings:["href","title","rel","tabindex","target"],classNameBindings:["active","loading","disabled","transitioningIn","transitioningOut"],eventName:"click",init:function(){this._super.apply(this,arguments)
1143
1143
  var e=(0,n.get)(this,"eventName")
1144
- this.on(e,this,this._invoke)},_routing:r.inject.service("-routing"),disabled:(0,n.computed)({get:function(){return!1},set:function(e,t){return void 0!==t&&this.set("_isDisabled",t),!!t&&(0,n.get)(this,"disabledClass")}}),_isActive:function(e){if((0,n.get)(this,"loading"))return!1
1144
+ this.on(e,this,this._invoke)},_routing:r.inject.service("-routing"),disabled:(0,n.computed)({get:function(){return!1},set:function(e,t){return this._isDisabled=t,!!t&&(0,n.get)(this,"disabledClass")}}),_isActive:function(e){if((0,n.get)(this,"loading"))return!1
1145
1145
  var t,r=(0,n.get)(this,"current-when")
1146
1146
  if("boolean"==typeof r)return r
1147
1147
  var i=!!r
@@ -1152,7 +1152,7 @@ return!1},active:(0,n.computed)("activeClass","_active",function(){return!!this.
1152
1152
  return!!e&&this._isActive(e)}),willBeActive:(0,n.computed)("_routing.targetState",function(){var e=(0,n.get)(this,"_routing"),t=(0,n.get)(e,"targetState")
1153
1153
  if((0,n.get)(e,"currentState")!==t)return this._isActive(t)}),transitioningIn:(0,n.computed)("active","willBeActive",function(){return(0,n.get)(this,"willBeActive")===!0&&!(0,n.get)(this,"_active")&&"ember-transitioning-in"}),transitioningOut:(0,n.computed)("active","willBeActive",function(){return!((0,n.get)(this,"willBeActive")!==!1||!(0,n.get)(this,"_active"))&&"ember-transitioning-out"}),_invoke:function(e){if(!(0,i.isSimpleClick)(e))return!0
1154
1154
  var t=(0,n.get)(this,"preventDefault"),r=(0,n.get)(this,"target")
1155
- if(t!==!1&&(r&&"_self"!==r||e.preventDefault()),(0,n.get)(this,"bubbles")===!1&&e.stopPropagation(),(0,n.get)(this,"_isDisabled"))return!1
1155
+ if(t!==!1&&(r&&"_self"!==r||e.preventDefault()),(0,n.get)(this,"bubbles")===!1&&e.stopPropagation(),this._isDisabled)return!1
1156
1156
  if((0,n.get)(this,"loading"))return!1
1157
1157
  if(r&&"_self"!==r)return!1
1158
1158
  var o=(0,n.get)(this,"qualifiedRouteName"),s=(0,n.get)(this,"models"),a=(0,n.get)(this,"queryParams.values"),u=(0,n.get)(this,"replace"),c={queryParams:a,routeName:o}
@@ -2572,7 +2572,7 @@ var b,_=s.computed
2572
2572
  _.alias=s.alias,s["default"].computed=_,s["default"].ComputedProperty=s.ComputedProperty,s["default"].cacheFor=s.cacheFor,s["default"].assert=u.assert,s["default"].warn=u.warn,s["default"].debug=u.debug,s["default"].deprecate=u.deprecate,s["default"].deprecateFunc=u.deprecateFunc,s["default"].runInDebug=u.runInDebug,s["default"].Debug={registerDeprecationHandler:u.registerDeprecationHandler,registerWarnHandler:u.registerWarnHandler},s["default"].merge=s.merge,s["default"].instrument=s.instrument,s["default"].subscribe=s.instrumentationSubscribe,s["default"].Instrumentation={instrument:s.instrument,subscribe:s.instrumentationSubscribe,unsubscribe:s.instrumentationUnsubscribe,reset:s.instrumentationReset},s["default"].Error=u.Error,s["default"].META_DESC=s.META_DESC,s["default"].meta=s.meta,s["default"].get=s.get,s["default"].getWithDefault=s.getWithDefault,s["default"]._getPath=s._getPath,s["default"].set=s.set,s["default"].trySet=s.trySet,s["default"].FEATURES=a.FEATURES,s["default"].FEATURES.isEnabled=u.isFeatureEnabled,s["default"]._Cache=s.Cache,s["default"].on=s.on,s["default"].addListener=s.addListener,s["default"].removeListener=s.removeListener,s["default"]._suspendListener=s.suspendListener,s["default"]._suspendListeners=s.suspendListeners,s["default"].sendEvent=s.sendEvent,s["default"].hasListeners=s.hasListeners,s["default"].watchedEvents=s.watchedEvents,s["default"].listenersFor=s.listenersFor,s["default"].isNone=s.isNone,s["default"].isEmpty=s.isEmpty,s["default"].isBlank=s.isBlank,s["default"].isPresent=s.isPresent,s["default"].run=s.run,s["default"]._ObserverSet=s.ObserverSet,s["default"].propertyWillChange=s.propertyWillChange,s["default"].propertyDidChange=s.propertyDidChange,s["default"].overrideChains=s.overrideChains,s["default"].beginPropertyChanges=s.beginPropertyChanges,s["default"].endPropertyChanges=s.endPropertyChanges,s["default"].changeProperties=s.changeProperties,s["default"].platform={defineProperty:!0,hasPropertyAccessors:!0},s["default"].defineProperty=s.defineProperty,s["default"].watchKey=s.watchKey,s["default"].unwatchKey=s.unwatchKey,s["default"].removeChainWatcher=s.removeChainWatcher,s["default"]._ChainNode=s.ChainNode,s["default"].finishChains=s.finishChains,s["default"].watchPath=s.watchPath,s["default"].unwatchPath=s.unwatchPath,s["default"].watch=s.watch,s["default"].isWatching=s.isWatching,s["default"].unwatch=s.unwatch,s["default"].destroy=s.deleteMeta,s["default"].libraries=s.libraries,s["default"].OrderedSet=s.OrderedSet,s["default"].Map=s.Map,s["default"].MapWithDefault=s.MapWithDefault,s["default"].getProperties=s.getProperties,s["default"].setProperties=s.setProperties,s["default"].expandProperties=s.expandProperties,s["default"].NAME_KEY=i.NAME_KEY,s["default"].addObserver=s.addObserver,s["default"].observersFor=s.observersFor,s["default"].removeObserver=s.removeObserver,s["default"]._suspendObserver=s._suspendObserver,s["default"]._suspendObservers=s._suspendObservers,s["default"].required=s.required,s["default"].aliasMethod=s.aliasMethod,s["default"].observer=s.observer,s["default"].immediateObserver=s._immediateObserver,s["default"].mixin=s.mixin,s["default"].Mixin=s.Mixin,s["default"].bind=s.bind,s["default"].Binding=s.Binding,s["default"].isGlobalPath=s.isGlobalPath,Object.defineProperty(s["default"],"ENV",{get:function(){return n.ENV},enumerable:!1}),Object.defineProperty(s["default"],"lookup",{get:function(){return n.context.lookup},set:function(e){n.context.lookup=e},enumerable:!1}),s["default"].EXTEND_PROTOTYPES=n.ENV.EXTEND_PROTOTYPES,Object.defineProperty(s["default"],"LOG_STACKTRACE_ON_DEPRECATION",{get:function(){return n.ENV.LOG_STACKTRACE_ON_DEPRECATION},set:function(e){n.ENV.LOG_STACKTRACE_ON_DEPRECATION=!!e},enumerable:!1}),Object.defineProperty(s["default"],"LOG_VERSION",{get:function(){return n.ENV.LOG_VERSION},set:function(e){n.ENV.LOG_VERSION=!!e},enumerable:!1}),Object.defineProperty(s["default"],"LOG_BINDINGS",{get:function(){return n.ENV.LOG_BINDINGS},set:function(e){n.ENV.LOG_BINDINGS=!!e},enumerable:!1}),Object.defineProperty(s["default"],"onerror",{get:s.getOnerror,set:s.setOnerror,enumerable:!1}),Object.defineProperty(s["default"],"K",{get:function(){return v}}),Object.defineProperty(s["default"],"testing",{get:u.isTesting,set:u.setTesting,enumerable:!1}),s["default"]._Backburner=c["default"],s["default"].Logger=l["default"],s["default"].String=p.String,s["default"].Object=p.Object,s["default"]._RegistryProxyMixin=p.RegistryProxyMixin,s["default"]._ContainerProxyMixin=p.ContainerProxyMixin,s["default"].compare=p.compare,s["default"].copy=p.copy,s["default"].isEqual=p.isEqual,s["default"].inject=p.inject,s["default"].Array=p.Array,s["default"].Comparable=p.Comparable,s["default"].Enumerable=p.Enumerable,s["default"].ArrayProxy=p.ArrayProxy,s["default"].ObjectProxy=p.ObjectProxy,s["default"].ActionHandler=p.ActionHandler,s["default"].CoreObject=p.CoreObject,s["default"].NativeArray=p.NativeArray,s["default"].Copyable=p.Copyable,s["default"].Freezable=p.Freezable,s["default"].FROZEN_ERROR=p.FROZEN_ERROR,s["default"].MutableEnumerable=p.MutableEnumerable,s["default"].MutableArray=p.MutableArray,s["default"].TargetActionSupport=p.TargetActionSupport,s["default"].Evented=p.Evented,s["default"].PromiseProxyMixin=p.PromiseProxyMixin,s["default"].Observable=p.Observable,s["default"].typeOf=p.typeOf,s["default"].isArray=p.isArray,s["default"].Object=p.Object,s["default"].onLoad=p.onLoad,s["default"].runLoadHooks=p.runLoadHooks,s["default"].Controller=p.Controller,s["default"].ControllerMixin=p.ControllerMixin,s["default"].Service=p.Service,s["default"]._ProxyMixin=p._ProxyMixin,s["default"].RSVP=p.RSVP,s["default"].Namespace=p.Namespace,_.empty=p.empty,_.notEmpty=p.notEmpty,_.none=p.none,_.not=p.not,_.bool=p.bool,_.match=p.match,_.equal=p.equal,_.gt=p.gt,_.gte=p.gte,_.lt=p.lt,_.lte=p.lte,_.oneWay=p.oneWay,_.reads=p.oneWay,_.readOnly=p.readOnly,_.deprecatingAlias=p.deprecatingAlias,_.and=p.and,_.or=p.or,_.any=p.any,_.sum=p.sum,_.min=p.min,_.max=p.max,_.map=p.map,_.sort=p.sort,_.setDiff=p.setDiff,_.mapBy=p.mapBy,_.filter=p.filter,_.filterBy=p.filterBy,_.uniq=p.uniq,_.uniqBy=p.uniqBy,_.union=p.union,_.intersect=p.intersect,_.collect=p.collect,Object.defineProperty(s["default"],"STRINGS",{configurable:!1,get:p.getStrings,set:p.setStrings}),Object.defineProperty(s["default"],"BOOTED",{configurable:!1,enumerable:!1,get:p.isNamespaceSearchDisabled,set:p.setNamespaceSearchDisabled}),s["default"].Component=h.Component,h.Helper.helper=h.helper,s["default"].Helper=h.Helper,s["default"].Checkbox=h.Checkbox,s["default"].TextField=h.TextField,s["default"].TextArea=h.TextArea,s["default"].LinkComponent=h.LinkComponent,n.ENV.EXTEND_PROTOTYPES.String&&(String.prototype.htmlSafe=function(){return(0,h.htmlSafe)(this)})
2573
2573
  var w=s["default"].Handlebars=s["default"].Handlebars||{},O=s["default"].HTMLBars=s["default"].HTMLBars||{},E=w.Utils=w.Utils||{}
2574
2574
  Object.defineProperty(w,"SafeString",{get:h._getSafeString}),O.template=w.template=h.template,E.escapeExpression=h.escapeExpression,p.String.htmlSafe=h.htmlSafe,p.String.isHTMLSafe=h.isHTMLSafe,Object.defineProperty(s["default"],"TEMPLATES",{get:h.getTemplates,set:h.setTemplates,configurable:!1,enumerable:!1}),e.VERSION=f["default"],s["default"].VERSION=f["default"],s.libraries.registerCoreLibrary("Ember",f["default"]),s["default"].$=d.jQuery,s["default"].ViewTargetActionSupport=d.ViewTargetActionSupport,s["default"].ViewUtils={isSimpleClick:d.isSimpleClick,getViewElement:d.getViewElement,getViewBounds:d.getViewBounds,getViewClientRects:d.getViewClientRects,getViewBoundingClientRect:d.getViewBoundingClientRect,getRootViews:d.getRootViews,getChildViews:d.getChildViews},s["default"].TextSupport=d.TextSupport,s["default"].ComponentLookup=d.ComponentLookup,s["default"].EventDispatcher=d.EventDispatcher,s["default"].Location=m.Location,s["default"].AutoLocation=m.AutoLocation,s["default"].HashLocation=m.HashLocation,s["default"].HistoryLocation=m.HistoryLocation,s["default"].NoneLocation=m.NoneLocation,s["default"].controllerFor=m.controllerFor,s["default"].generateControllerFactory=m.generateControllerFactory,s["default"].generateController=m.generateController,s["default"].RouterDSL=m.RouterDSL,s["default"].Router=m.Router,s["default"].Route=m.Route,s["default"].Application=g.Application,s["default"].ApplicationInstance=g.ApplicationInstance,s["default"].Engine=g.Engine,s["default"].EngineInstance=g.EngineInstance,s["default"].DefaultResolver=s["default"].Resolver=g.Resolver,(0,p.runLoadHooks)("Ember.Application",g.Application),s["default"].DataAdapter=y.DataAdapter,s["default"].ContainerDebugAdapter=y.ContainerDebugAdapter,(0,t.has)("ember-template-compiler")&&(0,t["default"])("ember-template-compiler"),(0,t.has)("ember-testing")&&(b=(0,t["default"])("ember-testing"),s["default"].Test=b.Test,s["default"].Test.Adapter=b.Adapter,s["default"].Test.QUnitAdapter=b.QUnitAdapter,s["default"].setupForTesting=b.setupForTesting),(0,p.runLoadHooks)("Ember"),e["default"]=s["default"],r.IS_NODE?r.module.exports=s["default"]:n.context.exports.Ember=n.context.exports.Em=s["default"]}),e("ember/version",["exports"],function(e){"use strict"
2575
- e["default"]="2.18.0-beta.4"}),e("node-module",["exports"],function(e){var t="object"==typeof module&&"function"==typeof module.require
2575
+ e["default"]="2.18.0-beta.5"}),e("node-module",["exports"],function(e){var t="object"==typeof module&&"function"==typeof module.require
2576
2576
  t?(e.require=module.require,e.module=module,e.IS_NODE=t):(e.require=null,e.module=null,e.IS_NODE=t)}),e("route-recognizer",["exports"],function(e){"use strict"
2577
2577
  function t(){var e=g(null)
2578
2578
  return e.__=void 0,delete e.__,e}function n(e,t,r){return function(i,o){var s=e+i
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 2.18.0-beta.4
9
+ * @version 2.18.0-beta.5
10
10
  */
11
11
 
12
12
  /*global process */
@@ -16121,7 +16121,6 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-met
16121
16121
  eventName: 'click',
16122
16122
  init: function () {
16123
16123
  this._super.apply(this, arguments);
16124
- this._isDisabled = false;
16125
16124
  // Map desired event name to invoke function
16126
16125
  var eventName = (0, _emberMetal.get)(this, 'eventName');
16127
16126
  this.on(eventName, this, this._invoke);
@@ -16137,12 +16136,13 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-met
16137
16136
  */
16138
16137
  disabled: (0, _emberMetal.computed)({
16139
16138
  get: function () {
16139
+ // always returns false for `get` because (due to the `set` just below)
16140
+ // the cached return value from the set will prevent this getter from _ever_
16141
+ // being called after a set has occured
16140
16142
  return false;
16141
16143
  },
16142
16144
  set: function (_key, value) {
16143
- if (value !== undefined) {
16144
- this.set('_isDisabled', value);
16145
- }
16145
+ this._isDisabled = value;
16146
16146
  return value ? (0, _emberMetal.get)(this, 'disabledClass') : false;
16147
16147
  }
16148
16148
  }),
@@ -16226,7 +16226,7 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-met
16226
16226
  if ((0, _emberMetal.get)(this, 'bubbles') === false) {
16227
16227
  event.stopPropagation();
16228
16228
  }
16229
- if ((0, _emberMetal.get)(this, '_isDisabled')) {
16229
+ if (this._isDisabled) {
16230
16230
  return false;
16231
16231
  }
16232
16232
  if ((0, _emberMetal.get)(this, 'loading')) {
@@ -16462,25 +16462,9 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-met
16462
16462
  {{/link-to}}
16463
16463
  ```
16464
16464
 
16465
- any passed value to `disabled` will disable it except `undefined`.
16466
- to ensure that only `true` disable the `link-to` component you can
16467
- override the global behavior of `LinkComponent`.
16468
-
16469
- ```javascript
16470
- import LinkComponent from '@ember/routing/link-component';
16471
- import { computed } from '@ember/object';
16472
-
16473
- LinkComponent.reopen({
16474
- disabled: computed(function(key, value) {
16475
- if (value !== undefined) {
16476
- this.set('_isDisabled', value === true);
16477
- }
16478
- return value === true ? get(this, 'disabledClass') : false;
16479
- })
16480
- });
16481
- ```
16465
+ any truthy value passed to `disabled` will disable it except `undefined`.
16482
16466
 
16483
- see "Overriding Application-wide Defaults" for more.
16467
+ See "Overriding Application-wide Defaults" for more.
16484
16468
 
16485
16469
  ### Handling `href`
16486
16470
  `{{link-to}}` will use your application's Router to
@@ -16667,30 +16651,31 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-met
16667
16651
  check out inherited properties of `LinkComponent`.
16668
16652
 
16669
16653
  ### Overriding Application-wide Defaults
16670
- ``{{link-to}}`` creates an instance of `LinkComponent`
16671
- for rendering. To override options for your entire
16672
- application, reopen `LinkComponent` and supply the
16673
- desired values:
16674
16654
 
16675
- ``` javascript
16655
+ ``{{link-to}}`` creates an instance of `LinkComponent` for rendering. To
16656
+ override options for your entire application, export your customized
16657
+ `LinkComponent` from `app/components/link-to.js` with the desired overrides:
16658
+
16659
+ ```javascript
16660
+ // app/components/link-to.js
16676
16661
  import LinkComponent from '@ember/routing/link-component';
16677
16662
 
16678
- LinkComponent.reopen({
16663
+ export default LinkComponent.extend({
16679
16664
  activeClass: "is-active",
16680
16665
  tagName: 'li'
16681
16666
  })
16682
16667
  ```
16683
16668
 
16684
- It is also possible to override the default event in
16685
- this manner:
16669
+ It is also possible to override the default event in this manner:
16686
16670
 
16687
- ``` javascript
16671
+ ```javascript
16688
16672
  import LinkCompoennt from '@ember/routing/link-component';
16689
16673
 
16690
- LinkComponent.reopen({
16674
+ export default LinkComponent.extend({
16691
16675
  eventName: 'customEventName'
16692
16676
  });
16693
16677
  ```
16678
+
16694
16679
  @method link-to
16695
16680
  @for Ember.Templates.helpers
16696
16681
  @param {String} routeName
@@ -43876,7 +43861,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
43876
43861
  enifed("ember/version", ["exports"], function (exports) {
43877
43862
  "use strict";
43878
43863
 
43879
- exports.default = "2.18.0-beta.4";
43864
+ exports.default = "2.18.0-beta.5";
43880
43865
  });
43881
43866
  /*global enifed */
43882
43867
  enifed('node-module', ['exports'], function(_exports) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "2.18.0-beta.4",
3
+ "version": "2.18.0-beta.5",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.18.0.beta.4
4
+ version: 2.18.0.beta.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-20 00:00:00.000000000 Z
11
+ date: 2017-12-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ember.js source code wrapper for use with Ruby libs.
14
14
  email:
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  version: 1.3.1
49
49
  requirements: []
50
50
  rubyforge_project:
51
- rubygems_version: 2.7.3
51
+ rubygems_version: 2.7.4
52
52
  signing_key:
53
53
  specification_version: 4
54
54
  summary: Ember.js source code wrapper.