ember-source 2.16.0 → 2.16.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.16.0
9
+ * @version 2.16.1
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -1264,7 +1264,7 @@ enifed('@glimmer/compiler', ['exports', 'node-module', '@glimmer/syntax', '@glim
1264
1264
  } else if (symbols.has(head)) {
1265
1265
  this.opcode('get', expr, symbols.get(head), expr.parts.slice(1));
1266
1266
  } else {
1267
- this.opcode('get', expr, 0, expr.parts);
1267
+ this.opcode('maybeLocal', expr, expr.parts);
1268
1268
  }
1269
1269
  }
1270
1270
  };
@@ -6678,10 +6678,9 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
6678
6678
  exports.missingOptionsUntilDeprecation = exports.missingOptionsIdDeprecation = exports.missingOptionsDeprecation = exports.registerHandler = undefined;
6679
6679
 
6680
6680
  /**
6681
- @module ember
6682
- @submodule ember-debug
6681
+ @module @ember/debug
6682
+ @public
6683
6683
  */
6684
-
6685
6684
  /**
6686
6685
  Allows for runtime registration of handler functions that override the default deprecation behavior.
6687
6686
  Deprecations are invoked by calls to [Ember.deprecate](https://emberjs.com/api/classes/Ember.html#method_deprecate).
@@ -6714,7 +6713,7 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
6714
6713
  @public
6715
6714
  @static
6716
6715
  @method registerDeprecationHandler
6717
- @for Ember.Debug
6716
+ @for @ember/debug
6718
6717
  @param handler {Function} A function to handle deprecation calls.
6719
6718
  @since 2.1.0
6720
6719
  */
@@ -6812,13 +6811,17 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
6812
6811
  exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `Ember.deprecate` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include `id` and `until` properties.';
6813
6812
  exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `Ember.deprecate` you must provide `id` in options.';
6814
6813
  exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation = 'When calling `Ember.deprecate` you must provide `until` in options.';
6815
-
6814
+ /**
6815
+ @module @ember/application
6816
+ @public
6817
+ */
6816
6818
  /**
6817
6819
  Display a deprecation warning with the provided message and a stack trace
6818
6820
  (Chrome and Firefox only).
6819
6821
  * In a production build, this method is defined as an empty function (NOP).
6820
6822
  Uses of this method in Ember itself are stripped from the ember.prod.js build.
6821
6823
  @method deprecate
6824
+ @for @ember/application/deprecations
6822
6825
  @param {String} message A description of the deprecation.
6823
6826
  @param {Boolean} test A boolean. If falsy, the deprecation will be displayed.
6824
6827
  @param {Object} options
@@ -6830,7 +6833,7 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
6830
6833
  warning will be removed.
6831
6834
  @param {String} [options.url] An optional url to the transition guide on the
6832
6835
  emberjs.com website.
6833
- @for Ember
6836
+ @static
6834
6837
  @public
6835
6838
  @since 1.0.0
6836
6839
  */
@@ -6872,11 +6875,14 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
6872
6875
  enifed("ember-debug/error", ["exports", "ember-babel"], function (exports, _emberBabel) {
6873
6876
  "use strict";
6874
6877
 
6878
+ /**
6879
+ @module @ember/error
6880
+ */
6881
+
6875
6882
  /**
6876
6883
  A subclass of the JavaScript Error object for use in Ember.
6877
6884
 
6878
- @class Error
6879
- @namespace Ember
6885
+ @class EmberError
6880
6886
  @extends Error
6881
6887
  @constructor
6882
6888
  @public
@@ -6925,6 +6931,10 @@ enifed('ember-debug/features', ['exports', 'ember-environment', 'ember/features'
6925
6931
 
6926
6932
  exports.default =
6927
6933
 
6934
+ /**
6935
+ @module ember
6936
+ */
6937
+
6928
6938
  /**
6929
6939
  The hash of enabled Canary features. Add to this, any canary features
6930
6940
  before creating your application.
@@ -7113,13 +7123,7 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
7113
7123
  };
7114
7124
 
7115
7125
  /**
7116
- @module ember
7117
- @submodule ember-debug
7118
- */
7119
-
7120
- /**
7121
- @class Ember
7122
- @public
7126
+ @module @ember/debug
7123
7127
  */
7124
7128
 
7125
7129
  /**
@@ -7127,12 +7131,15 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
7127
7131
  * In a production build, this method is defined as an empty function (NOP).
7128
7132
  Uses of this method in Ember itself are stripped from the ember.prod.js build.
7129
7133
  ```javascript
7130
- // Test for truthiness
7131
- Ember.assert('Must pass a valid object', obj);
7134
+ import { assert } from '@ember/debug';
7135
+ // Test for truthiness
7136
+ assert('Must pass a valid object', obj);
7132
7137
  // Fail unconditionally
7133
- Ember.assert('This code path should never be run');
7138
+ assert('This code path should never be run');
7134
7139
  ```
7135
7140
  @method assert
7141
+ @static
7142
+ @for @ember/debug
7136
7143
  @param {String} desc A description of the assertion. This will become
7137
7144
  the text of the Error thrown if the assertion fails.
7138
7145
  @param {Boolean} test Must be truthy for the assertion to pass. If
@@ -7151,9 +7158,12 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
7151
7158
  * In a production build, this method is defined as an empty function (NOP).
7152
7159
  Uses of this method in Ember itself are stripped from the ember.prod.js build.
7153
7160
  ```javascript
7154
- Ember.debug('I\'m a debug notice!');
7161
+ import { debug } from '@ember/debug';
7162
+ debug('I\'m a debug notice!');
7155
7163
  ```
7156
7164
  @method debug
7165
+ @for @ember/debug
7166
+ @static
7157
7167
  @param {String} message A debug message to display.
7158
7168
  @public
7159
7169
  */
@@ -7172,6 +7182,11 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
7172
7182
  _emberConsole.default.info.apply(undefined, arguments);
7173
7183
  });
7174
7184
 
7185
+ /**
7186
+ @module @ember/application
7187
+ @public
7188
+ */
7189
+
7175
7190
  /**
7176
7191
  Alias an old, deprecated method with its new counterpart.
7177
7192
  Display a deprecation warning with the provided message and a stack trace
@@ -7181,6 +7196,8 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
7181
7196
  Ember.oldMethod = Ember.deprecateFunc('Please use the new, updated method', Ember.newMethod);
7182
7197
  ```
7183
7198
  @method deprecateFunc
7199
+ @static
7200
+ @for @ember/application/deprecations
7184
7201
  @param {String} message A description of the deprecation.
7185
7202
  @param {Object} [options] The options object for Ember.deprecate.
7186
7203
  @param {Function} func The new function called to replace its deprecated counterpart.
@@ -7213,13 +7230,19 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
7213
7230
  }
7214
7231
  });
7215
7232
 
7233
+ /**
7234
+ @module @ember/debug
7235
+ @public
7236
+ */
7216
7237
  /**
7217
7238
  Run a function meant for debugging.
7218
7239
  * In a production build, this method is defined as an empty function (NOP).
7219
7240
  Uses of this method in Ember itself are stripped from the ember.prod.js build.
7220
7241
  ```javascript
7221
- Ember.runInDebug(() => {
7222
- Ember.Component.reopen({
7242
+ import Component from '@ember/component';
7243
+ import { runInDebug } from '@ember/debug';
7244
+ runInDebug(() => {
7245
+ Component.reopen({
7223
7246
  didInsertElement() {
7224
7247
  console.log("I'm happy");
7225
7248
  }
@@ -7227,6 +7250,8 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
7227
7250
  });
7228
7251
  ```
7229
7252
  @method runInDebug
7253
+ @for @ember/debug
7254
+ @static
7230
7255
  @param {Function} func The function to be executed.
7231
7256
  @since 1.5.0
7232
7257
  @public
@@ -7252,7 +7277,7 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
7252
7277
 
7253
7278
  if (true && !(0, _testing.isTesting)()) {
7254
7279
  /**
7255
- Will call `Ember.warn()` if ENABLE_OPTIONAL_FEATURES or
7280
+ Will call `warn()` if ENABLE_OPTIONAL_FEATURES or
7256
7281
  any specific FEATURES flag is truthy.
7257
7282
  This method is called automatically in debug canary builds.
7258
7283
  @private
@@ -7351,18 +7376,18 @@ enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate',
7351
7376
  missingOptionsIdDeprecation = void 0;
7352
7377
 
7353
7378
  /**
7354
- @module ember
7355
- @submodule ember-debug
7379
+ @module @ember/debug
7356
7380
  */
7357
7381
 
7358
7382
  /**
7359
7383
  Allows for runtime registration of handler functions that override the default warning behavior.
7360
- Warnings are invoked by calls made to [Ember.warn](https://emberjs.com/api/classes/Ember.html#method_warn).
7384
+ Warnings are invoked by calls made to [warn](https://emberjs.com/api/classes/Ember.html#method_warn).
7361
7385
  The following example demonstrates its usage by registering a handler that does nothing overriding Ember's
7362
7386
  default warning behavior.
7363
7387
  ```javascript
7364
- // next is not called, so no warnings get the default behavior
7365
- Ember.Debug.registerWarnHandler(() => {});
7388
+ import { registerWarnHandler } from '@ember/debug';
7389
+ // next is not called, so no warnings get the default behavior
7390
+ registerWarnHandler(() => {});
7366
7391
  ```
7367
7392
  The handler function takes the following arguments:
7368
7393
  <ul>
@@ -7376,7 +7401,7 @@ enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate',
7376
7401
  @public
7377
7402
  @static
7378
7403
  @method registerWarnHandler
7379
- @for Ember.Debug
7404
+ @for @ember/debug
7380
7405
  @param handler {Function} A function to handle warnings.
7381
7406
  @since 2.1.0
7382
7407
  */
@@ -7391,14 +7416,16 @@ enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate',
7391
7416
  }
7392
7417
  });
7393
7418
 
7394
- exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `Ember.warn` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include an `id` property.';
7395
- exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `Ember.warn` you must provide `id` in options.';
7419
+ exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `warn` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include an `id` property.';
7420
+ exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `warn` you must provide `id` in options.';
7396
7421
 
7397
7422
  /**
7398
7423
  Display a warning with the provided message.
7399
7424
  * In a production build, this method is defined as an empty function (NOP).
7400
7425
  Uses of this method in Ember itself are stripped from the ember.prod.js build.
7401
7426
  @method warn
7427
+ @for @ember/debug
7428
+ @static
7402
7429
  @param {String} message A warning to display.
7403
7430
  @param {Boolean} test An optional boolean. If falsy, the warning
7404
7431
  will be displayed.
@@ -7406,7 +7433,6 @@ enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate',
7406
7433
  `id` for this warning. The `id` can be used by Ember debugging tools
7407
7434
  to change the behavior (raise, log, or silence) for that specific warning.
7408
7435
  The `id` should be namespaced by dots, e.g. "ember-debug.feature-flag-with-features-stripped"
7409
- @for Ember
7410
7436
  @public
7411
7437
  @since 1.0.0
7412
7438
  */
@@ -7608,7 +7634,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
7608
7634
 
7609
7635
  /**
7610
7636
  @module ember
7611
- @submodule ember-metal
7612
7637
  */
7613
7638
 
7614
7639
  /**
@@ -7817,8 +7842,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
7817
7842
  }
7818
7843
 
7819
7844
  /**
7820
- @module ember
7821
- @submodule ember-metal
7845
+ @module @ember/object
7822
7846
  */
7823
7847
  /*
7824
7848
  The event system uses a series of nested hashes to store listeners on an
@@ -7842,7 +7866,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
7842
7866
  Add an event listener
7843
7867
 
7844
7868
  @method addListener
7845
- @for Ember
7869
+ @static
7870
+ @for @ember/object/events
7846
7871
  @param obj
7847
7872
  @param {String} eventName
7848
7873
  @param {Object|Function} target A target object or a function
@@ -7851,7 +7876,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
7851
7876
  @public
7852
7877
  */
7853
7878
  function addListener(obj, eventName, target, method, once) {
7854
- true && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to Ember.addListener', !!obj && !!eventName);
7879
+ true && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to addListener', !!obj && !!eventName);
7855
7880
  true && !(eventName !== 'didInitAttrs') && emberDebug.deprecate('didInitAttrs called in ' + (obj && obj.toString && obj.toString()) + '.', eventName !== 'didInitAttrs', {
7856
7881
  id: 'ember-views.did-init-attrs',
7857
7882
  until: '3.0.0',
@@ -7878,10 +7903,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
7878
7903
  /**
7879
7904
  Remove an event listener
7880
7905
 
7881
- Arguments should match those passed to `Ember.addListener`.
7906
+ Arguments should match those passed to `addListener`.
7882
7907
 
7883
7908
  @method removeListener
7884
- @for Ember
7909
+ @static
7910
+ @for @ember/object/events
7885
7911
  @param obj
7886
7912
  @param {String} eventName
7887
7913
  @param {Object|Function} target A target object or a function
@@ -7889,7 +7915,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
7889
7915
  @public
7890
7916
  */
7891
7917
  function removeListener(obj, eventName, target, method) {
7892
- true && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to Ember.removeListener', !!obj && !!eventName);
7918
+ true && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to removeListener', !!obj && !!eventName);
7893
7919
 
7894
7920
  if (!method && 'function' === typeof target) {
7895
7921
  method = target;
@@ -7909,7 +7935,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
7909
7935
  setting that property.
7910
7936
 
7911
7937
  @method suspendListener
7912
- @for Ember
7938
+ @static
7939
+ @for @ember/object/events
7913
7940
 
7914
7941
  @private
7915
7942
  @param obj
@@ -7926,7 +7953,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
7926
7953
  Suspends multiple listeners during a callback.
7927
7954
 
7928
7955
  @method suspendListeners
7929
- @for Ember
7956
+ @static
7957
+ @for @ember/object/events
7930
7958
 
7931
7959
  @private
7932
7960
  @param obj
@@ -7948,7 +7976,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
7948
7976
 
7949
7977
  @private
7950
7978
  @method watchedEvents
7951
- @for Ember
7979
+ @static
7980
+ @for @ember/object/events
7952
7981
  @param obj
7953
7982
  */
7954
7983
 
@@ -7960,7 +7989,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
7960
7989
  is not passed, the actions stored on the passed object are invoked.
7961
7990
 
7962
7991
  @method sendEvent
7963
- @for Ember
7992
+ @static
7993
+ @for @ember/object/events
7964
7994
  @param obj
7965
7995
  @param {String} eventName
7966
7996
  @param {Array} params Optional parameters for each listener.
@@ -8021,7 +8051,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
8021
8051
  /**
8022
8052
  @private
8023
8053
  @method hasListeners
8024
- @for Ember
8054
+ @static
8055
+ @for @ember/object/events
8025
8056
  @param obj
8026
8057
  @param {String} eventName
8027
8058
  */
@@ -8030,7 +8061,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
8030
8061
  /**
8031
8062
  @private
8032
8063
  @method listenersFor
8033
- @for Ember
8064
+ @static
8065
+ @for @ember/object/events
8034
8066
  @param obj
8035
8067
  @param {String} eventName
8036
8068
  */
@@ -8062,19 +8094,24 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
8062
8094
 
8063
8095
 
8064
8096
  ``` javascript
8065
- let Job = Ember.Object.extend({
8066
- logCompleted: Ember.on('completed', function() {
8097
+ import EmberObject from '@ember/object';
8098
+ import { on } from '@ember/object/evented';
8099
+ import { sendEvent } from '@ember/object/events';
8100
+
8101
+ let Job = EmberObject.extend({
8102
+ logCompleted: on('completed', function() {
8067
8103
  console.log('Job completed!');
8068
8104
  })
8069
8105
  });
8070
8106
 
8071
8107
  let job = Job.create();
8072
8108
 
8073
- Ember.sendEvent(job, 'completed'); // Logs 'Job completed!'
8109
+ sendEvent(job, 'completed'); // Logs 'Job completed!'
8074
8110
  ```
8075
8111
 
8076
8112
  @method on
8077
- @for Ember
8113
+ @static
8114
+ @for @ember/object/evented
8078
8115
  @param {String} eventNames*
8079
8116
  @param {Function} func
8080
8117
  @return func
@@ -8311,6 +8348,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
8311
8348
  };
8312
8349
  }
8313
8350
 
8351
+ /**
8352
+ @module ember
8353
+ @private
8354
+ */
8355
+
8314
8356
  var PROPERTY_DID_CHANGE = emberUtils.symbol('PROPERTY_DID_CHANGE');
8315
8357
 
8316
8358
  var beforeObserverSet = new ObserverSet();
@@ -8626,7 +8668,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
8626
8668
  }
8627
8669
 
8628
8670
  /**
8629
- @module ember-metal
8671
+ @module @ember/object
8630
8672
  */
8631
8673
 
8632
8674
  // ..........................................................
@@ -8670,7 +8712,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
8670
8712
  if (!m.isInitialized(this)) {
8671
8713
  m.writeValues(name, value);
8672
8714
  } else {
8673
- true && !false && emberDebug.assert('You must use Ember.set() to set the `' + name + '` property (of ' + this + ') to `' + value + '`.', false);
8715
+ true && !false && emberDebug.assert('You must use set() to set the `' + name + '` property (of ' + this + ') to `' + value + '`.', false);
8674
8716
  }
8675
8717
  }
8676
8718
 
@@ -8712,7 +8754,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
8712
8754
  /**
8713
8755
  NOTE: This is a low-level method used by other parts of the API. You almost
8714
8756
  never want to call this method directly. Instead you should use
8715
- `Ember.mixin()` to define new properties.
8757
+ `mixin()` to define new properties.
8716
8758
 
8717
8759
  Defines a property on an object. This method works much like the ES5
8718
8760
  `Object.defineProperty()` method except that it can also accept computed
@@ -8726,8 +8768,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
8726
8768
  ## Examples
8727
8769
 
8728
8770
  ```javascript
8771
+ import { defineProperty, computed } from '@ember/object';
8772
+
8729
8773
  // ES5 compatible mode
8730
- Ember.defineProperty(contact, 'firstName', {
8774
+ defineProperty(contact, 'firstName', {
8731
8775
  writable: true,
8732
8776
  configurable: false,
8733
8777
  enumerable: true,
@@ -8735,17 +8779,17 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
8735
8779
  });
8736
8780
 
8737
8781
  // define a simple property
8738
- Ember.defineProperty(contact, 'lastName', undefined, 'Jolley');
8782
+ defineProperty(contact, 'lastName', undefined, 'Jolley');
8739
8783
 
8740
8784
  // define a computed property
8741
- Ember.defineProperty(contact, 'fullName', Ember.computed('firstName', 'lastName', function() {
8785
+ defineProperty(contact, 'fullName', computed('firstName', 'lastName', function() {
8742
8786
  return this.firstName+' '+this.lastName;
8743
8787
  }));
8744
8788
  ```
8745
8789
 
8746
8790
  @private
8747
8791
  @method defineProperty
8748
- @for Ember
8792
+ @for @ember/object
8749
8793
  @param {Object} obj the object to define this property on. This may be a prototype.
8750
8794
  @param {String} keyName the name of the property
8751
8795
  @param {Descriptor} [desc] an instance of `Descriptor` (typically a
@@ -9433,7 +9477,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
9433
9477
  }
9434
9478
 
9435
9479
  /**
9436
- @module ember-metal
9480
+ @module ember
9437
9481
  */
9438
9482
 
9439
9483
  var UNDEFINED = emberUtils.symbol('undefined');
@@ -10162,7 +10206,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10162
10206
  }
10163
10207
 
10164
10208
  /**
10165
- @module ember-metal
10209
+ @module @ember/object
10166
10210
  */
10167
10211
 
10168
10212
  var ALLOWABLE_TYPES = {
@@ -10201,7 +10245,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10201
10245
  an error.
10202
10246
 
10203
10247
  @method get
10204
- @for Ember
10248
+ @for @ember/object
10249
+ @static
10205
10250
  @param {Object} obj The object to retrieve from.
10206
10251
  @param {String} keyName The property key to retrieve
10207
10252
  @return {Object} the property value or `null`.
@@ -10261,7 +10306,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10261
10306
  ```
10262
10307
 
10263
10308
  @method getWithDefault
10264
- @for Ember
10309
+ @for @ember/object
10310
+ @static
10265
10311
  @param {Object} obj The object to retrieve from.
10266
10312
  @param {String} keyName The name of the property to retrieve
10267
10313
  @param {Object} defaultValue The value to return if the property value is undefined
@@ -10270,6 +10316,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10270
10316
  */
10271
10317
 
10272
10318
 
10319
+ /**
10320
+ @module @ember/object
10321
+ */
10273
10322
  /**
10274
10323
  Sets the value of a property on an object, respecting computed properties
10275
10324
  and notifying observers and other listeners of the change. If the
@@ -10281,7 +10330,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10281
10330
  ```
10282
10331
 
10283
10332
  @method set
10284
- @for Ember
10333
+ @static
10334
+ @for @ember/object
10285
10335
  @param {Object} obj The object to modify.
10286
10336
  @param {String} keyName The property key to set
10287
10337
  @param {Object} value The value to set
@@ -10370,7 +10420,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10370
10420
  an object has been destroyed.
10371
10421
 
10372
10422
  @method trySet
10373
- @for Ember
10423
+ @static
10424
+ @for @ember/object
10374
10425
  @param {Object} root The object to modify.
10375
10426
  @param {String} path The property path to set
10376
10427
  @param {Object} value The value to set
@@ -10381,8 +10432,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10381
10432
  }
10382
10433
 
10383
10434
  /**
10384
- @module ember
10385
- @submodule ember-metal
10435
+ @module @ember/object
10386
10436
  */
10387
10437
 
10388
10438
  var END_WITH_EACH_REGEX = /\.@each$/;
@@ -10396,19 +10446,22 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10396
10446
  Example
10397
10447
 
10398
10448
  ```js
10449
+ import { expandProperties } from '@ember/object/computed';
10450
+
10399
10451
  function echo(arg){ console.log(arg); }
10400
10452
 
10401
- Ember.expandProperties('foo.bar', echo); //=> 'foo.bar'
10402
- Ember.expandProperties('{foo,bar}', echo); //=> 'foo', 'bar'
10403
- Ember.expandProperties('foo.{bar,baz}', echo); //=> 'foo.bar', 'foo.baz'
10404
- Ember.expandProperties('{foo,bar}.baz', echo); //=> 'foo.baz', 'bar.baz'
10405
- Ember.expandProperties('foo.{bar,baz}.[]', echo) //=> 'foo.bar.[]', 'foo.baz.[]'
10406
- Ember.expandProperties('{foo,bar}.{spam,eggs}', echo) //=> 'foo.spam', 'foo.eggs', 'bar.spam', 'bar.eggs'
10407
- Ember.expandProperties('{foo}.bar.{baz}') //=> 'foo.bar.baz'
10453
+ expandProperties('foo.bar', echo); //=> 'foo.bar'
10454
+ expandProperties('{foo,bar}', echo); //=> 'foo', 'bar'
10455
+ expandProperties('foo.{bar,baz}', echo); //=> 'foo.bar', 'foo.baz'
10456
+ expandProperties('{foo,bar}.baz', echo); //=> 'foo.baz', 'bar.baz'
10457
+ expandProperties('foo.{bar,baz}.[]', echo) //=> 'foo.bar.[]', 'foo.baz.[]'
10458
+ expandProperties('{foo,bar}.{spam,eggs}', echo) //=> 'foo.spam', 'foo.eggs', 'bar.spam', 'bar.eggs'
10459
+ expandProperties('{foo}.bar.{baz}') //=> 'foo.bar.baz'
10408
10460
  ```
10409
10461
 
10410
10462
  @method expandProperties
10411
- @for Ember
10463
+ @static
10464
+ @for @ember/object
10412
10465
  @public
10413
10466
  @param {String} pattern The property pattern to expand.
10414
10467
  @param {Function} callback The callback to invoke. It is invoked once per
@@ -10450,7 +10503,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10450
10503
  }
10451
10504
 
10452
10505
  /**
10453
- @module ember-metal
10506
+ @module ember
10454
10507
  */
10455
10508
  /**
10456
10509
  Starts watching a property on an object. Whenever the property changes,
@@ -10486,11 +10539,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10486
10539
  }
10487
10540
  }
10488
10541
 
10489
- /**
10490
- @module ember
10491
- @submodule ember-metal
10492
- */
10493
-
10494
10542
  // ..........................................................
10495
10543
  // DEPENDENT KEYS
10496
10544
  //
@@ -10536,8 +10584,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10536
10584
  }
10537
10585
 
10538
10586
  /**
10539
- @module ember
10540
- @submodule ember-metal
10587
+ @module @ember/object
10541
10588
  */
10542
10589
 
10543
10590
  var DEEP_EACH_REGEX = /\.@each\.[^.]+\./;
@@ -10551,23 +10598,25 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10551
10598
  result to be recomputed if the dependencies are modified.
10552
10599
 
10553
10600
  In the following example we declare a computed property - `fullName` - by calling
10554
- `.Ember.computed()` with property dependencies (`firstName` and `lastName`) as leading arguments and getter accessor function. The `fullName` getter function
10601
+ `computed` with property dependencies (`firstName` and `lastName`) as leading arguments and getter accessor function. The `fullName` getter function
10555
10602
  will be called once (regardless of how many times it is accessed) as long
10556
10603
  as its dependencies have not changed. Once `firstName` or `lastName` are updated
10557
10604
  any future calls (or anything bound) to `fullName` will incorporate the new
10558
10605
  values.
10559
10606
 
10560
10607
  ```javascript
10561
- let Person = Ember.Object.extend({
10608
+ import EmberObject, { computed } from '@ember/object';
10609
+
10610
+ let Person = EmberObject.extend({
10562
10611
  // these will be supplied by `create`
10563
10612
  firstName: null,
10564
10613
  lastName: null,
10565
10614
 
10566
- fullName: Ember.computed('firstName', 'lastName', function() {
10615
+ fullName: computed('firstName', 'lastName', function() {
10567
10616
  let firstName = this.get('firstName'),
10568
10617
  lastName = this.get('lastName');
10569
10618
 
10570
- return firstName + ' ' + lastName;
10619
+ return `${firstName} ${lastName}`;
10571
10620
  })
10572
10621
  });
10573
10622
 
@@ -10584,12 +10633,14 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10584
10633
  value you want to set it to as arguments.
10585
10634
 
10586
10635
  ```javascript
10587
- let Person = Ember.Object.extend({
10636
+ import EmberObject, { computed } from '@ember/object';
10637
+
10638
+ let Person = EmberObject.extend({
10588
10639
  // these will be supplied by `create`
10589
10640
  firstName: null,
10590
10641
  lastName: null,
10591
10642
 
10592
- fullName: Ember.computed('firstName', 'lastName', {
10643
+ fullName: computed('firstName', 'lastName', {
10593
10644
  get(key) {
10594
10645
  let firstName = this.get('firstName'),
10595
10646
  lastName = this.get('lastName');
@@ -10619,12 +10670,14 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10619
10670
  You can also mark computed property as `.readOnly()` and block all attempts to set it.
10620
10671
 
10621
10672
  ```javascript
10622
- let Person = Ember.Object.extend({
10673
+ import EmberObject, { computed } from '@ember/object';
10674
+
10675
+ let Person = EmberObject.extend({
10623
10676
  // these will be supplied by `create`
10624
10677
  firstName: null,
10625
10678
  lastName: null,
10626
10679
 
10627
- fullName: Ember.computed('firstName', 'lastName', {
10680
+ fullName: computed('firstName', 'lastName', {
10628
10681
  get(key) {
10629
10682
  let firstName = this.get('firstName');
10630
10683
  let lastName = this.get('lastName');
@@ -10643,7 +10696,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10643
10696
  - [New computed syntax explained in "Ember 1.12 released" ](https://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_new-computed-syntax)
10644
10697
 
10645
10698
  @class ComputedProperty
10646
- @namespace Ember
10647
10699
  @public
10648
10700
  */
10649
10701
  function ComputedProperty(config, opts) {
@@ -10652,10 +10704,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10652
10704
  if (hasGetterOnly) {
10653
10705
  this._getter = config;
10654
10706
  } else {
10655
- true && !(typeof config === 'object' && !Array.isArray(config)) && emberDebug.assert('Ember.computed expects a function or an object as last argument.', typeof config === 'object' && !Array.isArray(config));
10707
+ true && !(typeof config === 'object' && !Array.isArray(config)) && emberDebug.assert('computed expects a function or an object as last argument.', typeof config === 'object' && !Array.isArray(config));
10656
10708
  true && !Object.keys(config).every(function (key) {
10657
10709
  return key === 'get' || key === 'set';
10658
- }) && emberDebug.assert('Config object passed to an Ember.computed can only contain `get` or `set` keys.', Object.keys(config).every(function (key) {
10710
+ }) && emberDebug.assert('Config object passed to computed can only contain `get` or `set` keys.', Object.keys(config).every(function (key) {
10659
10711
  return key === 'get' || key === 'set';
10660
10712
  }));
10661
10713
 
@@ -10688,15 +10740,19 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10688
10740
  invalidation and notification when cached value is invalidated.
10689
10741
 
10690
10742
  ```javascript
10691
- let outsideService = Ember.Object.extend({
10692
- value: Ember.computed(function() {
10743
+ import EmberObject, { computed } from '@ember/object';
10744
+
10745
+ let outsideService = EmberObject.extend({
10746
+ value: computed(function() {
10693
10747
  return OutsideService.getValue();
10694
10748
  }).volatile()
10695
10749
  }).create();
10696
10750
  ```
10697
10751
 
10698
10752
  @method volatile
10699
- @return {Ember.ComputedProperty} this
10753
+ @static
10754
+ @for @ember/object/computed
10755
+ @return {ComputedProperty} this
10700
10756
  @chainable
10701
10757
  @public
10702
10758
  */
@@ -10710,8 +10766,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10710
10766
  mode the computed property will throw an error when set.
10711
10767
 
10712
10768
  ```javascript
10713
- let Person = Ember.Object.extend({
10714
- guid: Ember.computed(function() {
10769
+ import EmberObject, { computed } from '@ember/object';
10770
+
10771
+ let Person = EmberObject.extend({
10772
+ guid: computed(function() {
10715
10773
  return 'guid-guid-guid';
10716
10774
  }).readOnly()
10717
10775
  });
@@ -10722,7 +10780,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10722
10780
  ```
10723
10781
 
10724
10782
  @method readOnly
10725
- @return {Ember.ComputedProperty} this
10783
+ @static
10784
+ @for @ember/object/computed
10785
+ @return {ComputedProperty} this
10726
10786
  @chainable
10727
10787
  @public
10728
10788
  */
@@ -10738,13 +10798,15 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10738
10798
  arguments containing key paths that this computed property depends on.
10739
10799
 
10740
10800
  ```javascript
10741
- let President = Ember.Object.extend({
10742
- fullName: Ember.computed(function() {
10801
+ import EmberObject, { computed } from '@ember/object';
10802
+
10803
+ let President = EmberObject.extend({
10804
+ fullName: computed('firstName', 'lastName', function() {
10743
10805
  return this.get('firstName') + ' ' + this.get('lastName');
10744
10806
 
10745
10807
  // Tell Ember that this computed property depends on firstName
10746
10808
  // and lastName
10747
- }).property('firstName', 'lastName')
10809
+ })
10748
10810
  });
10749
10811
 
10750
10812
  let president = President.create({
@@ -10756,8 +10818,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10756
10818
  ```
10757
10819
 
10758
10820
  @method property
10821
+ @static
10822
+ @for @ember/object/computed
10759
10823
  @param {String} path* zero or more property paths
10760
- @return {Ember.ComputedProperty} this
10824
+ @return {ComputedProperty} this
10761
10825
  @chainable
10762
10826
  @public
10763
10827
  */
@@ -10803,6 +10867,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10803
10867
  via the `metaForProperty()` function.
10804
10868
 
10805
10869
  @method meta
10870
+ @static
10871
+ @for @ember/object/computed
10806
10872
  @param {Object} meta
10807
10873
  @chainable
10808
10874
  @public
@@ -10959,13 +11025,15 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10959
11025
  /**
10960
11026
  This helper returns a new property descriptor that wraps the passed
10961
11027
  computed property function. You can use this helper to define properties
10962
- with mixins or via `Ember.defineProperty()`.
11028
+ with mixins or via `defineProperty()`.
10963
11029
 
10964
11030
  If you pass a function as an argument, it will be used as a getter. A computed
10965
11031
  property defined in this way might look like this:
10966
11032
 
10967
11033
  ```js
10968
- let Person = Ember.Object.extend({
11034
+ import EmberObject, { computed } from '@ember/object';
11035
+
11036
+ let Person = EmberObject.extend({
10969
11037
  init() {
10970
11038
  this._super(...arguments);
10971
11039
 
@@ -10973,7 +11041,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10973
11041
  this.lastName = 'Jones';
10974
11042
  },
10975
11043
 
10976
- fullName: Ember.computed('firstName', 'lastName', function() {
11044
+ fullName: computed('firstName', 'lastName', function() {
10977
11045
  return `${this.get('firstName')} ${this.get('lastName')}`;
10978
11046
  })
10979
11047
  });
@@ -10990,7 +11058,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10990
11058
  argument to provide both a getter and setter:
10991
11059
 
10992
11060
  ```js
10993
- let Person = Ember.Object.extend({
11061
+ import EmberObject, { computed } from '@ember/object';
11062
+
11063
+ let Person = EmberObject.extend({
10994
11064
  init() {
10995
11065
  this._super(...arguments);
10996
11066
 
@@ -10998,7 +11068,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
10998
11068
  this.lastName = 'Jones';
10999
11069
  },
11000
11070
 
11001
- fullName: Ember.computed('firstName', 'lastName', {
11071
+ fullName: computed('firstName', 'lastName', {
11002
11072
  get(key) {
11003
11073
  return `${this.get('firstName')} ${this.get('lastName')}`;
11004
11074
  },
@@ -11032,13 +11102,12 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11032
11102
  }.property('firstName', 'lastName')
11033
11103
  ```
11034
11104
 
11035
- @class computed
11036
- @namespace Ember
11037
- @constructor
11105
+ @method computed
11106
+ @for @ember/object
11038
11107
  @static
11039
11108
  @param {String} [dependentKeys*] Optional dependent keys that trigger this computed property.
11040
11109
  @param {Function} func The computed property function.
11041
- @return {Ember.ComputedProperty} property descriptor instance
11110
+ @return {ComputedProperty} property descriptor instance
11042
11111
  @public
11043
11112
  */
11044
11113
 
@@ -11050,7 +11119,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11050
11119
  it to be created.
11051
11120
 
11052
11121
  @method cacheFor
11053
- @for Ember
11122
+ @static
11123
+ @for @ember/object/internals
11054
11124
  @param {Object} obj the object whose property you want to check
11055
11125
  @param {String} key the name of the property whose cached value you want
11056
11126
  to return
@@ -11167,18 +11237,24 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11167
11237
  AliasedProperty.prototype._meta = undefined;
11168
11238
  AliasedProperty.prototype.meta = ComputedProperty.prototype.meta;
11169
11239
 
11240
+ /**
11241
+ @module @ember/polyfills
11242
+ */
11170
11243
  /**
11171
11244
  Merge the contents of two objects together into the first object.
11172
11245
 
11173
11246
  ```javascript
11174
- Ember.merge({ first: 'Tom' }, { last: 'Dale' }); // { first: 'Tom', last: 'Dale' }
11247
+ import { merge } from '@ember/polyfills';
11248
+
11249
+ merge({ first: 'Tom' }, { last: 'Dale' }); // { first: 'Tom', last: 'Dale' }
11175
11250
  var a = { first: 'Yehuda' };
11176
11251
  var b = { last: 'Katz' };
11177
- Ember.merge(a, b); // a == { first: 'Yehuda', last: 'Katz' }, b == { last: 'Katz' }
11252
+ merge(a, b); // a == { first: 'Yehuda', last: 'Katz' }, b == { last: 'Katz' }
11178
11253
  ```
11179
11254
 
11180
11255
  @method merge
11181
- @for Ember
11256
+ @static
11257
+ @for @ember/polyfills
11182
11258
  @param {Object} original The object to merge into
11183
11259
  @param {Object} updates The object to copy properties from
11184
11260
  @return {Object}
@@ -11188,7 +11264,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11188
11264
 
11189
11265
  /**
11190
11266
  @module ember
11191
- @submodule ember-metal
11192
11267
  */
11193
11268
 
11194
11269
  /**
@@ -11206,15 +11281,22 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11206
11281
  /* eslint no-console:off */
11207
11282
  /* global console */
11208
11283
 
11284
+ /**
11285
+ @module @ember/instrumentation
11286
+ @private
11287
+ */
11288
+
11209
11289
  /**
11210
11290
  The purpose of the Ember Instrumentation module is
11211
11291
  to provide efficient, general-purpose instrumentation
11212
11292
  for Ember.
11213
11293
 
11214
- Subscribe to a listener by using `Ember.subscribe`:
11294
+ Subscribe to a listener by using `subscribe`:
11215
11295
 
11216
11296
  ```javascript
11217
- Ember.subscribe("render", {
11297
+ import { subscribe } from '@ember/instrumentation';
11298
+
11299
+ subscribe("render", {
11218
11300
  before(name, timestamp, payload) {
11219
11301
 
11220
11302
  },
@@ -11229,15 +11311,17 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11229
11311
  value will be passed as a fourth parameter to the `after`
11230
11312
  callback.
11231
11313
 
11232
- Instrument a block of code by using `Ember.instrument`:
11314
+ Instrument a block of code by using `instrument`:
11233
11315
 
11234
11316
  ```javascript
11235
- Ember.instrument("render.handlebars", payload, function() {
11317
+ import { instrument } from '@ember/instrumentation';
11318
+
11319
+ instrument("render.handlebars", payload, function() {
11236
11320
  // rendering logic
11237
11321
  }, binding);
11238
11322
  ```
11239
11323
 
11240
- Event names passed to `Ember.instrument` are namespaced
11324
+ Event names passed to `instrument` are namespaced
11241
11325
  by periods, from more general to more specific. Subscribers
11242
11326
  can listen for events by whatever level of granularity they
11243
11327
  are interested in.
@@ -11249,7 +11333,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11249
11333
  even `render.handlebars.layout`.
11250
11334
 
11251
11335
  @class Instrumentation
11252
- @namespace Ember
11253
11336
  @static
11254
11337
  @private
11255
11338
  */
@@ -11285,8 +11368,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11285
11368
  Notifies event's subscribers, calls `before` and `after` hooks.
11286
11369
 
11287
11370
  @method instrument
11288
- @namespace Ember.Instrumentation
11289
-
11371
+ @for @ember/instrumentation
11372
+ @static
11290
11373
  @param {String} [name] Namespaced event name.
11291
11374
  @param {Object} _payload
11292
11375
  @param {Function} callback Function that you're instrumenting.
@@ -11392,7 +11475,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11392
11475
  Subscribes to a particular event or instrumented block of code.
11393
11476
 
11394
11477
  @method subscribe
11395
- @namespace Ember.Instrumentation
11478
+ @for @ember/instrumentation
11479
+ @static
11396
11480
 
11397
11481
  @param {String} [pattern] Namespaced event name.
11398
11482
  @param {Object} [object] Before and After hooks.
@@ -11406,7 +11490,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11406
11490
  Unsubscribes from a particular event or instrumented block of code.
11407
11491
 
11408
11492
  @method unsubscribe
11409
- @namespace Ember.Instrumentation
11493
+ @for @ember/instrumentation
11494
+ @static
11410
11495
 
11411
11496
  @param {Object} [subscriber]
11412
11497
  @private
@@ -11414,10 +11499,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11414
11499
 
11415
11500
 
11416
11501
  /**
11417
- Resets `Ember.Instrumentation` by flushing list of subscribers.
11502
+ Resets `Instrumentation` by flushing list of subscribers.
11418
11503
 
11419
11504
  @method reset
11420
- @namespace Ember.Instrumentation
11505
+ @for @ember/instrumentation
11506
+ @static
11421
11507
  @private
11422
11508
  */
11423
11509
 
@@ -11464,6 +11550,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11464
11550
  }
11465
11551
  }
11466
11552
 
11553
+ /**
11554
+ @module ember
11555
+ */
11467
11556
  var id = 0;
11468
11557
 
11469
11558
  // Returns whether Type(value) is Object according to the terminology in the spec
@@ -11604,22 +11693,26 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11604
11693
 
11605
11694
  var weak_map = emberUtils.HAS_NATIVE_WEAKMAP ? WeakMap : WeakMapPolyfill;
11606
11695
 
11696
+ /**
11697
+ @module @ember/utils
11698
+ */
11607
11699
  /**
11608
11700
  Returns true if the passed value is null or undefined. This avoids errors
11609
11701
  from JSLint complaining about use of ==, which can be technically
11610
11702
  confusing.
11611
11703
 
11612
11704
  ```javascript
11613
- Ember.isNone(); // true
11614
- Ember.isNone(null); // true
11615
- Ember.isNone(undefined); // true
11616
- Ember.isNone(''); // false
11617
- Ember.isNone([]); // false
11618
- Ember.isNone(function() {}); // false
11705
+ isNone(); // true
11706
+ isNone(null); // true
11707
+ isNone(undefined); // true
11708
+ isNone(''); // false
11709
+ isNone([]); // false
11710
+ isNone(function() {}); // false
11619
11711
  ```
11620
11712
 
11621
11713
  @method isNone
11622
- @for Ember
11714
+ @static
11715
+ @for @ember/utils
11623
11716
  @param {Object} obj Value to test
11624
11717
  @return {Boolean}
11625
11718
  @public
@@ -11628,28 +11721,32 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11628
11721
  return obj === null || obj === undefined;
11629
11722
  }
11630
11723
 
11724
+ /**
11725
+ @module @ember/utils
11726
+ */
11631
11727
  /**
11632
11728
  Verifies that a value is `null` or `undefined`, an empty string, or an empty
11633
11729
  array.
11634
11730
 
11635
- Constrains the rules on `Ember.isNone` by returning true for empty strings and
11731
+ Constrains the rules on `isNone` by returning true for empty strings and
11636
11732
  empty arrays.
11637
11733
 
11638
11734
  ```javascript
11639
- Ember.isEmpty(); // true
11640
- Ember.isEmpty(null); // true
11641
- Ember.isEmpty(undefined); // true
11642
- Ember.isEmpty(''); // true
11643
- Ember.isEmpty([]); // true
11644
- Ember.isEmpty({}); // false
11645
- Ember.isEmpty('Adam Hawkins'); // false
11646
- Ember.isEmpty([0,1,2]); // false
11647
- Ember.isEmpty('\n\t'); // false
11648
- Ember.isEmpty(' '); // false
11735
+ isEmpty(); // true
11736
+ isEmpty(null); // true
11737
+ isEmpty(undefined); // true
11738
+ isEmpty(''); // true
11739
+ isEmpty([]); // true
11740
+ isEmpty({}); // false
11741
+ isEmpty('Adam Hawkins'); // false
11742
+ isEmpty([0,1,2]); // false
11743
+ isEmpty('\n\t'); // false
11744
+ isEmpty(' '); // false
11649
11745
  ```
11650
11746
 
11651
11747
  @method isEmpty
11652
- @for Ember
11748
+ @static
11749
+ @for @ember/utils
11653
11750
  @param {Object} obj Value to test
11654
11751
  @return {Boolean}
11655
11752
  @public
@@ -11691,25 +11788,31 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11691
11788
  return false;
11692
11789
  }
11693
11790
 
11791
+ /**
11792
+ @module @ember/utils
11793
+ */
11694
11794
  /**
11695
11795
  A value is blank if it is empty or a whitespace string.
11696
11796
 
11697
11797
  ```javascript
11698
- Ember.isBlank(); // true
11699
- Ember.isBlank(null); // true
11700
- Ember.isBlank(undefined); // true
11701
- Ember.isBlank(''); // true
11702
- Ember.isBlank([]); // true
11703
- Ember.isBlank('\n\t'); // true
11704
- Ember.isBlank(' '); // true
11705
- Ember.isBlank({}); // false
11706
- Ember.isBlank('\n\t Hello'); // false
11707
- Ember.isBlank('Hello world'); // false
11708
- Ember.isBlank([1,2,3]); // false
11798
+ import { isBlank } from '@ember/utils';
11799
+
11800
+ isBlank(); // true
11801
+ isBlank(null); // true
11802
+ isBlank(undefined); // true
11803
+ isBlank(''); // true
11804
+ isBlank([]); // true
11805
+ isBlank('\n\t'); // true
11806
+ isBlank(' '); // true
11807
+ isBlank({}); // false
11808
+ isBlank('\n\t Hello'); // false
11809
+ isBlank('Hello world'); // false
11810
+ isBlank([1,2,3]); // false
11709
11811
  ```
11710
11812
 
11711
11813
  @method isBlank
11712
- @for Ember
11814
+ @static
11815
+ @for @ember/utils
11713
11816
  @param {Object} obj Value to test
11714
11817
  @return {Boolean}
11715
11818
  @since 1.5.0
@@ -11719,31 +11822,35 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11719
11822
  return isEmpty(obj) || typeof obj === 'string' && /\S/.test(obj) === false;
11720
11823
  }
11721
11824
 
11825
+ /**
11826
+ @module @ember/utils
11827
+ */
11722
11828
  /**
11723
11829
  A value is present if it not `isBlank`.
11724
11830
 
11725
11831
  ```javascript
11726
- Ember.isPresent(); // false
11727
- Ember.isPresent(null); // false
11728
- Ember.isPresent(undefined); // false
11729
- Ember.isPresent(''); // false
11730
- Ember.isPresent(' '); // false
11731
- Ember.isPresent('\n\t'); // false
11732
- Ember.isPresent([]); // false
11733
- Ember.isPresent({ length: 0 }) // false
11734
- Ember.isPresent(false); // true
11735
- Ember.isPresent(true); // true
11736
- Ember.isPresent('string'); // true
11737
- Ember.isPresent(0); // true
11738
- Ember.isPresent(function() {}) // true
11739
- Ember.isPresent({}); // true
11740
- Ember.isPresent(false); // true
11741
- Ember.isPresent('\n\t Hello'); // true
11742
- Ember.isPresent([1,2,3]); // true
11832
+ isPresent(); // false
11833
+ isPresent(null); // false
11834
+ isPresent(undefined); // false
11835
+ isPresent(''); // false
11836
+ isPresent(' '); // false
11837
+ isPresent('\n\t'); // false
11838
+ isPresent([]); // false
11839
+ isPresent({ length: 0 }) // false
11840
+ isPresent(false); // true
11841
+ isPresent(true); // true
11842
+ isPresent('string'); // true
11843
+ isPresent(0); // true
11844
+ isPresent(function() {}) // true
11845
+ isPresent({}); // true
11846
+ isPresent(false); // true
11847
+ isPresent('\n\t Hello'); // true
11848
+ isPresent([1,2,3]); // true
11743
11849
  ```
11744
11850
 
11745
11851
  @method isPresent
11746
- @for Ember
11852
+ @static
11853
+ @for @ember/utils
11747
11854
  @param {Object} obj Value to test
11748
11855
  @return {Boolean}
11749
11856
  @since 1.8.0
@@ -11768,6 +11875,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11768
11875
  onErrorMethod: 'onerror'
11769
11876
  });
11770
11877
 
11878
+ /**
11879
+ @module @ember/runloop
11880
+ */
11771
11881
  // ..........................................................
11772
11882
  // run - this is ideally the only public API the dev sees
11773
11883
  //
@@ -11788,8 +11898,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11788
11898
  });
11789
11899
  ```
11790
11900
 
11791
- @class run
11792
- @namespace Ember
11901
+ @class @ember/runloop
11793
11902
  @static
11794
11903
  @constructor
11795
11904
  @param {Object} [target] target of method to call
@@ -11832,7 +11941,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11832
11941
  ```
11833
11942
 
11834
11943
  @method join
11835
- @namespace Ember
11944
+ @static
11945
+ @for @ember/runloop
11836
11946
  @param {Object} [target] target of method to call
11837
11947
  @param {Function|String} method Method to invoke.
11838
11948
  May be a function or a string. If you pass a string
@@ -11896,7 +12006,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11896
12006
  method be safely handled and executed by the Ember run loop.
11897
12007
 
11898
12008
  @method bind
11899
- @namespace Ember
12009
+ @static
12010
+ @for @ember/runloop
11900
12011
  @param {Object} [target] target of method to call
11901
12012
  @param {Function|String} method Method to invoke.
11902
12013
  May be a function or a string. If you pass a string
@@ -11940,6 +12051,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11940
12051
  ```
11941
12052
 
11942
12053
  @method begin
12054
+ @static
12055
+ @for @ember/runloop
11943
12056
  @return {void}
11944
12057
  @public
11945
12058
  */
@@ -11959,6 +12072,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11959
12072
  ```
11960
12073
 
11961
12074
  @method end
12075
+ @static
12076
+ @for @ember/runloop
11962
12077
  @return {void}
11963
12078
  @public
11964
12079
  */
@@ -12006,6 +12121,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12006
12121
  ```
12007
12122
 
12008
12123
  @method schedule
12124
+ @static
12125
+ @for @ember/runloop
12009
12126
  @param {String} queue The name of the queue to schedule against.
12010
12127
  Default queues are 'sync' and 'actions'
12011
12128
  @param {Object} [target] target object to use as the context when invoking a method.
@@ -12046,6 +12163,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12046
12163
  ```
12047
12164
 
12048
12165
  @method sync
12166
+ @static
12167
+ @for @ember/runloop
12049
12168
  @return {void}
12050
12169
  @private
12051
12170
  */
@@ -12072,6 +12191,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12072
12191
  ```
12073
12192
 
12074
12193
  @method later
12194
+ @static
12195
+ @for @ember/runloop
12075
12196
  @param {Object} [target] target of method to invoke
12076
12197
  @param {Function|String} method The method to invoke.
12077
12198
  If you pass a string it will be resolved on the
@@ -12090,6 +12211,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12090
12211
  to calling `scheduleOnce` with the "actions" queue.
12091
12212
 
12092
12213
  @method once
12214
+ @static
12215
+ @for @ember/runloop
12093
12216
  @param {Object} [target] The target of the method to invoke.
12094
12217
  @param {Function|String} method The method to invoke.
12095
12218
  If you pass a string it will be resolved on the
@@ -12168,6 +12291,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12168
12291
  Available queues, and their order, can be found at `run.queues`
12169
12292
 
12170
12293
  @method scheduleOnce
12294
+ @static
12295
+ @for @ember/runloop
12171
12296
  @param {String} [queue] The name of the queue to schedule against. Default queues are 'sync' and 'actions'.
12172
12297
  @param {Object} [target] The target of the method to invoke.
12173
12298
  @param {Function|String} method The method to invoke.
@@ -12240,6 +12365,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12240
12365
  outside of the current run loop, i.e. with `run.next`.
12241
12366
 
12242
12367
  @method next
12368
+ @static
12369
+ @for @ember/runloop
12243
12370
  @param {Object} [target] target of method to invoke
12244
12371
  @param {Function|String} method The method to invoke.
12245
12372
  If you pass a string it will be resolved on the
@@ -12310,6 +12437,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12310
12437
  ```
12311
12438
 
12312
12439
  @method cancel
12440
+ @static
12441
+ @for @ember/runloop
12313
12442
  @param {Object} timer Timer object to cancel
12314
12443
  @return {Boolean} true if canceled or false/undefined if it wasn't found
12315
12444
  @public
@@ -12376,6 +12505,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12376
12505
  ```
12377
12506
 
12378
12507
  @method debounce
12508
+ @static
12509
+ @for @ember/runloop
12379
12510
  @param {Object} [target] target of method to invoke
12380
12511
  @param {Function|String} method The method to invoke.
12381
12512
  May be a function or a string. If you pass a string
@@ -12419,6 +12550,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12419
12550
  ```
12420
12551
 
12421
12552
  @method throttle
12553
+ @static
12554
+ @for @ember/runloop
12422
12555
  @param {Object} [target] target of method to invoke
12423
12556
  @param {Function|String} method The method to invoke.
12424
12557
  May be a function or a string. If you pass a string
@@ -12450,6 +12583,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12450
12583
  }
12451
12584
  };
12452
12585
 
12586
+ /**
12587
+ @module ember
12588
+ */
12453
12589
  /**
12454
12590
  Helper class that allows you to register your library with Ember.
12455
12591
 
@@ -12523,7 +12659,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12523
12659
 
12524
12660
  /**
12525
12661
  @module ember
12526
- @submodule ember-metal
12527
12662
  */
12528
12663
 
12529
12664
  /*
@@ -12531,7 +12666,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12531
12666
  which are often used as dictionaries, may only have Strings as keys.
12532
12667
 
12533
12668
  Because Ember has a way to get a unique identifier for every object
12534
- via `Ember.guidFor`, we can implement a performant Map with arbitrary
12669
+ via `guidFor`, we can implement a performant Map with arbitrary
12535
12670
  keys. Because it is commonly used in low-level bookkeeping, Map is
12536
12671
  implemented as a pure JavaScript object for performance.
12537
12672
 
@@ -12541,7 +12676,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12541
12676
  forEach method for iteration.
12542
12677
 
12543
12678
  Map is mocked out to look like an Ember object, so you can do
12544
- `Ember.Map.create()` for symmetry with other Ember classes.
12679
+ `EmberMap.create()` for symmetry with other Ember classes.
12545
12680
  */
12546
12681
  function missingFunction(fn) {
12547
12682
  throw new TypeError(Object.prototype.toString.call(fn) + ' is not a function');
@@ -12753,7 +12888,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12753
12888
  Internally, a Map has two data structures:
12754
12889
 
12755
12890
  1. `keys`: an OrderedSet of all of the existing keys
12756
- 2. `values`: a JavaScript Object indexed by the `Ember.guidFor(key)`
12891
+ 2. `values`: a JavaScript Object indexed by the `guidFor(key)`
12757
12892
 
12758
12893
  When a key/value pair is added for the first time, we
12759
12894
  add the key to the `keys` OrderedSet, and create or
@@ -12958,7 +13093,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
12958
13093
  @param [options]
12959
13094
  @param {*} [options.defaultValue]
12960
13095
  @return {Ember.MapWithDefault|Ember.Map} If options are passed, returns
12961
- `Ember.MapWithDefault` otherwise returns `Ember.Map`
13096
+ `MapWithDefault` otherwise returns `EmberMap`
12962
13097
  @private
12963
13098
  */
12964
13099
  MapWithDefault.create = function (options) {
@@ -13009,23 +13144,32 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
13009
13144
  };
13010
13145
 
13011
13146
  /**
13012
- To get multiple properties at once, call `Ember.getProperties`
13147
+ @module @ember/object
13148
+ */
13149
+
13150
+ /**
13151
+ To get multiple properties at once, call `getProperties`
13013
13152
  with an object followed by a list of strings or an array:
13014
13153
 
13015
13154
  ```javascript
13016
- Ember.getProperties(record, 'firstName', 'lastName', 'zipCode');
13155
+ import { getProperties } from '@ember/object';
13156
+
13157
+ getProperties(record, 'firstName', 'lastName', 'zipCode');
13017
13158
  // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }
13018
13159
  ```
13019
13160
 
13020
13161
  is equivalent to:
13021
13162
 
13022
13163
  ```javascript
13023
- Ember.getProperties(record, ['firstName', 'lastName', 'zipCode']);
13164
+ import { getProperties } from '@ember/object';
13165
+
13166
+ getProperties(record, ['firstName', 'lastName', 'zipCode']);
13024
13167
  // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }
13025
13168
  ```
13026
13169
 
13027
13170
  @method getProperties
13028
- @for Ember
13171
+ @static
13172
+ @for @ember/object
13029
13173
  @param {Object} obj
13030
13174
  @param {String...|Array} list of keys to get
13031
13175
  @return {Object}
@@ -13033,6 +13177,9 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
13033
13177
  */
13034
13178
 
13035
13179
 
13180
+ /**
13181
+ @module @ember/object
13182
+ */
13036
13183
  /**
13037
13184
  Set a list of properties on an object. These properties are set inside
13038
13185
  a single `beginPropertyChanges` and `endPropertyChanges` batch, so
@@ -13049,6 +13196,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
13049
13196
  ```
13050
13197
 
13051
13198
  @method setProperties
13199
+ @static
13200
+ @for @ember/object
13052
13201
  @param obj
13053
13202
  @param {Object} properties
13054
13203
  @return properties
@@ -13057,7 +13206,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
13057
13206
 
13058
13207
 
13059
13208
  /**
13060
- @module ember-metal
13209
+ @module @ember/object
13061
13210
  */
13062
13211
 
13063
13212
  function changeEvent(keyName) {
@@ -13070,7 +13219,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
13070
13219
 
13071
13220
  /**
13072
13221
  @method addObserver
13073
- @for Ember
13222
+ @static
13223
+ @for @ember/object/observers
13074
13224
  @param obj
13075
13225
  @param {String} _path
13076
13226
  @param {Object|Function} target
@@ -13086,7 +13236,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
13086
13236
 
13087
13237
  /**
13088
13238
  @method removeObserver
13089
- @for Ember
13239
+ @static
13240
+ @for @ember/object/observers
13090
13241
  @param obj
13091
13242
  @param {String} path
13092
13243
  @param {Object|Function} target
@@ -13102,7 +13253,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
13102
13253
 
13103
13254
  /**
13104
13255
  @method _addBeforeObserver
13105
- @for Ember
13256
+ @static
13257
+ @for @ember/object/observers
13106
13258
  @param obj
13107
13259
  @param {String} path
13108
13260
  @param {Object|Function} target
@@ -13127,7 +13279,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
13127
13279
 
13128
13280
  /**
13129
13281
  @method removeBeforeObserver
13130
- @for Ember
13282
+ @static
13283
+ @for @ember/object/observers
13131
13284
  @param obj
13132
13285
  @param {String} path
13133
13286
  @param {Object|Function} target
@@ -13144,7 +13297,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
13144
13297
 
13145
13298
  /**
13146
13299
  @module ember
13147
- @submodule ember-metal
13148
13300
  */
13149
13301
 
13150
13302
  // ..........................................................
@@ -13623,8 +13775,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
13623
13775
 
13624
13776
 
13625
13777
  /**
13626
- @module ember
13627
- @submodule ember-metal
13778
+ @module @ember/object
13628
13779
  */
13629
13780
  var a_concat = Array.prototype.concat;
13630
13781
  var isArray = Array.isArray;
@@ -14014,7 +14165,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14014
14165
 
14015
14166
  /**
14016
14167
  @method mixin
14017
- @for Ember
14018
14168
  @param obj
14019
14169
  @param mixins*
14020
14170
  @return obj
@@ -14023,21 +14173,28 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14023
14173
 
14024
14174
 
14025
14175
  /**
14026
- The `Ember.Mixin` class allows you to create mixins, whose properties can be
14176
+ The `Mixin` class allows you to create mixins, whose properties can be
14027
14177
  added to other classes. For instance,
14028
14178
 
14029
14179
  ```javascript
14030
- const EditableMixin = Ember.Mixin.create({
14180
+ import Mixin from '@ember/object/mixin';
14181
+
14182
+ const EditableMixin = Mixin.create({
14031
14183
  edit() {
14032
14184
  console.log('starting to edit');
14033
14185
  this.set('isEditing', true);
14034
14186
  },
14035
14187
  isEditing: false
14036
14188
  });
14189
+ ```
14190
+
14191
+ ```javascript
14192
+ import EmberObject from '@ember/object';
14193
+ import EditableMixin from '../mixins/editable';
14037
14194
 
14038
14195
  // Mix mixins into classes by passing them as the first arguments to
14039
14196
  // `.extend.`
14040
- const Comment = Ember.Object.extend(EditableMixin, {
14197
+ const Comment = EmberObject.extend(EditableMixin, {
14041
14198
  post: null
14042
14199
  });
14043
14200
 
@@ -14048,8 +14205,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14048
14205
  comment.edit(); // outputs 'starting to edit'
14049
14206
  ```
14050
14207
 
14051
- Note that Mixins are created with `Ember.Mixin.create`, not
14052
- `Ember.Mixin.extend`.
14208
+ Note that Mixins are created with `Mixin.create`, not
14209
+ `Mixin.extend`.
14053
14210
 
14054
14211
  Note that mixins extend a constructor's prototype so arrays and object literals
14055
14212
  defined as properties will be shared amongst objects that implement the mixin.
@@ -14058,28 +14215,43 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14058
14215
 
14059
14216
  ```javascript
14060
14217
  // filters array will be shared amongst any object implementing mixin
14061
- const FilterableMixin = Ember.Mixin.create({
14062
- filters: Ember.A()
14218
+ import Mixin from '@ember/object/mixin';
14219
+ import { A } from '@ember/array';
14220
+
14221
+ const FilterableMixin = Mixin.create({
14222
+ filters: A()
14063
14223
  });
14224
+ ```
14225
+
14226
+ ```javascript
14227
+ import Mixin from '@ember/object/mixin';
14228
+ import { A } from '@ember/array';
14229
+ import { computed } from '@ember/object';
14064
14230
 
14065
14231
  // filters will be a separate array for every object implementing the mixin
14066
- const FilterableMixin = Ember.Mixin.create({
14067
- filters: Ember.computed(function() {
14068
- return Ember.A();
14232
+ const FilterableMixin = Mixin.create({
14233
+ filters: computed(function() {
14234
+ return A();
14069
14235
  })
14070
14236
  });
14237
+ ```
14238
+
14239
+ ```javascript
14240
+ import Mixin from '@ember/object/mixin';
14241
+ import { A } from '@ember/array';
14071
14242
 
14072
14243
  // filters will be created as a separate array during the object's initialization
14073
- const Filterable = Ember.Mixin.create({
14244
+ const Filterable = Mixin.create({
14245
+ filters: null,
14246
+
14074
14247
  init() {
14075
14248
  this._super(...arguments);
14076
- this.set("filters", Ember.A());
14249
+ this.set("filters", A());
14077
14250
  }
14078
14251
  });
14079
14252
  ```
14080
14253
 
14081
14254
  @class Mixin
14082
- @namespace Ember
14083
14255
  @public
14084
14256
  */
14085
14257
 
@@ -14130,6 +14302,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14130
14302
 
14131
14303
  /**
14132
14304
  @method create
14305
+ @for @ember/object/mixin
14133
14306
  @static
14134
14307
  @param arguments*
14135
14308
  @public
@@ -14151,7 +14324,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14151
14324
  };
14152
14325
 
14153
14326
  // returns the mixins currently applied to the specified object
14154
- // TODO: Make Ember.mixin
14327
+ // TODO: Make `mixin`
14155
14328
 
14156
14329
 
14157
14330
  Mixin.mixins = function (obj) {
@@ -14365,7 +14538,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14365
14538
  ```
14366
14539
 
14367
14540
  @method aliasMethod
14368
- @for Ember
14541
+ @static
14542
+ @for @ember/object
14369
14543
  @param {String} methodName name of the method to alias
14370
14544
  @public
14371
14545
  */
@@ -14379,8 +14553,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14379
14553
  Specify a method that observes property changes.
14380
14554
 
14381
14555
  ```javascript
14382
- Ember.Object.extend({
14383
- valueObserver: Ember.observer('value', function() {
14556
+ import EmberObject from '@ember/object';
14557
+ import { observer } from '@ember/object';
14558
+
14559
+ export default EmberObject.extend({
14560
+ valueObserver: observer('value', function() {
14384
14561
  // Executes whenever the "value" property changes
14385
14562
  })
14386
14563
  });
@@ -14390,11 +14567,12 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14390
14567
  enabled.
14391
14568
 
14392
14569
  @method observer
14393
- @for Ember
14570
+ @for @ember/object
14394
14571
  @param {String} propertyNames*
14395
14572
  @param {Function} func
14396
14573
  @return func
14397
14574
  @public
14575
+ @static
14398
14576
  */
14399
14577
  function observer() {
14400
14578
  var _paths = void 0,
@@ -14410,7 +14588,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14410
14588
 
14411
14589
  if (typeof args[args.length - 1] !== 'function') {
14412
14590
  // revert to old, soft-deprecated argument ordering
14413
- true && !false && emberDebug.deprecate('Passing the dependentKeys after the callback function in Ember.observer is deprecated. Ensure the callback function is the last argument.', false, { id: 'ember-metal.observer-argument-order', until: '3.0.0' });
14591
+ true && !false && emberDebug.deprecate('Passing the dependentKeys after the callback function in observer is deprecated. Ensure the callback function is the last argument.', false, { id: 'ember-metal.observer-argument-order', until: '3.0.0' });
14414
14592
 
14415
14593
  func = args.shift();
14416
14594
  _paths = args;
@@ -14419,10 +14597,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14419
14597
  _paths = args;
14420
14598
  }
14421
14599
 
14422
- true && !(typeof func === 'function') && emberDebug.assert('Ember.observer called without a function', typeof func === 'function');
14600
+ true && !(typeof func === 'function') && emberDebug.assert('observer called without a function', typeof func === 'function');
14423
14601
  true && !(_paths.length > 0 && _paths.every(function (p) {
14424
14602
  return typeof p === 'string' && p.length;
14425
- })) && emberDebug.assert('Ember.observer called without valid path', _paths.length > 0 && _paths.every(function (p) {
14603
+ })) && emberDebug.assert('observer called without valid path', _paths.length > 0 && _paths.every(function (p) {
14426
14604
  return typeof p === 'string' && p.length;
14427
14605
  }));
14428
14606
 
@@ -14443,15 +14621,17 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14443
14621
  Specify a method that observes property changes.
14444
14622
 
14445
14623
  ```javascript
14446
- Ember.Object.extend({
14624
+ import EmberObject from '@ember/object';
14625
+
14626
+ EmberObject.extend({
14447
14627
  valueObserver: Ember.immediateObserver('value', function() {
14448
14628
  // Executes whenever the "value" property changes
14449
14629
  })
14450
14630
  });
14451
14631
  ```
14452
14632
 
14453
- In the future, `Ember.observer` may become asynchronous. In this event,
14454
- `Ember.immediateObserver` will maintain the synchronous behavior.
14633
+ In the future, `observer` may become asynchronous. In this event,
14634
+ `immediateObserver` will maintain the synchronous behavior.
14455
14635
 
14456
14636
  Also available as `Function.prototype.observesImmediately` if prototype extensions are
14457
14637
  enabled.
@@ -14460,7 +14640,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14460
14640
  @for Ember
14461
14641
  @param {String} propertyNames*
14462
14642
  @param {Function} func
14463
- @deprecated Use `Ember.observer` instead.
14643
+ @deprecated Use `observer` instead.
14464
14644
  @return func
14465
14645
  @private
14466
14646
  */
@@ -14484,6 +14664,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14484
14664
  */
14485
14665
 
14486
14666
 
14667
+ /**
14668
+ @module ember
14669
+ @private
14670
+ */
14671
+
14487
14672
  /**
14488
14673
  Read-only property that returns the result of a container lookup.
14489
14674
 
@@ -14507,7 +14692,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14507
14692
  var desc = this[keyName];
14508
14693
  var owner = emberUtils.getOwner(this) || this.container; // fallback to `container` for backwards compat
14509
14694
 
14510
- true && !(desc && desc.isDescriptor && desc.type) && emberDebug.assert('InjectedProperties should be defined with the Ember.inject computed property macros.', desc && desc.isDescriptor && desc.type);
14695
+ true && !(desc && desc.isDescriptor && desc.type) && emberDebug.assert('InjectedProperties should be defined with the inject computed property macros.', desc && desc.isDescriptor && desc.type);
14511
14696
  true && !owner && emberDebug.assert('Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.', owner);
14512
14697
 
14513
14698
  return owner.lookup(desc.type + ':' + (desc.name || keyName));
@@ -14556,11 +14741,6 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14556
14741
  return Descriptor$$1;
14557
14742
  }(Descriptor);
14558
14743
 
14559
- /**
14560
- @module ember
14561
- @submodule ember-metal
14562
- */
14563
-
14564
14744
  exports['default'] = Ember;
14565
14745
  exports.computed = function () {
14566
14746
  for (_len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
@@ -14724,10 +14904,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14724
14904
  _key;
14725
14905
  var events = args;
14726
14906
 
14727
- true && !(typeof func === 'function') && emberDebug.assert('Ember.on expects function as last argument', typeof func === 'function');
14907
+ true && !(typeof func === 'function') && emberDebug.assert('on expects function as last argument', typeof func === 'function');
14728
14908
  true && !(events.length > 0 && events.every(function (p) {
14729
14909
  return typeof p === 'string' && p.length;
14730
- })) && emberDebug.assert('Ember.on called without valid event names', events.length > 0 && events.every(function (p) {
14910
+ })) && emberDebug.assert('on called without valid event names', events.length > 0 && events.every(function (p) {
14731
14911
  return typeof p === 'string' && p.length;
14732
14912
  }));
14733
14913
 
@@ -14852,7 +15032,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
14852
15032
  exports._immediateObserver = function () {
14853
15033
  var i, arg;
14854
15034
 
14855
- true && !false && emberDebug.deprecate('Usage of `Ember.immediateObserver` is deprecated, use `Ember.observer` instead.', false, { id: 'ember-metal.immediate-observer', until: '3.0.0' });
15035
+ true && !false && emberDebug.deprecate('Usage of `Ember.immediateObserver` is deprecated, use `observer` instead.', false, { id: 'ember-metal.immediate-observer', until: '3.0.0' });
14856
15036
 
14857
15037
  for (i = 0; i < arguments.length; i++) {
14858
15038
  arg = arguments[i];
@@ -15240,7 +15420,6 @@ enifed('ember-template-compiler/plugins/transform-action-syntax', ['exports'], f
15240
15420
  exports.default =
15241
15421
  /**
15242
15422
  @module ember
15243
- @submodule ember-glimmer
15244
15423
  */
15245
15424
 
15246
15425
  /**
@@ -15320,7 +15499,6 @@ enifed('ember-template-compiler/plugins/transform-attrs-into-args', ['exports'],
15320
15499
  exports.default =
15321
15500
  /**
15322
15501
  @module ember
15323
- @submodule ember-glimmer
15324
15502
  */
15325
15503
 
15326
15504
  /**
@@ -15502,7 +15680,6 @@ enifed('ember-template-compiler/plugins/transform-each-in-into-each', ['exports'
15502
15680
  exports.default =
15503
15681
  /**
15504
15682
  @module ember
15505
- @submodule ember-glimmer
15506
15683
  */
15507
15684
 
15508
15685
  /**
@@ -15568,7 +15745,6 @@ enifed('ember-template-compiler/plugins/transform-has-block-syntax', ['exports']
15568
15745
  };
15569
15746
  /**
15570
15747
  @module ember
15571
- @submodule ember-glimmer
15572
15748
  */
15573
15749
 
15574
15750
  /**
@@ -15644,7 +15820,6 @@ enifed('ember-template-compiler/plugins/transform-input-on-to-onEvent', ['export
15644
15820
 
15645
15821
  /**
15646
15822
  @module ember
15647
- @submodule ember-htmlbars
15648
15823
  */
15649
15824
 
15650
15825
  /**
@@ -15762,7 +15937,6 @@ enifed('ember-template-compiler/plugins/transform-input-type-syntax', ['exports'
15762
15937
  exports.default =
15763
15938
  /**
15764
15939
  @module ember
15765
- @submodule ember-glimmer
15766
15940
  */
15767
15941
 
15768
15942
  /**
@@ -16151,7 +16325,6 @@ enifed('ember-template-compiler/system/bootstrap', ['exports', 'ember-debug', 'e
16151
16325
  */
16152
16326
  /**
16153
16327
  @module ember
16154
- @submodule ember-templates
16155
16328
  */
16156
16329
 
16157
16330
  exports.default = function (_ref) {
@@ -16326,7 +16499,6 @@ enifed('ember-template-compiler/system/compile', ['exports', 'require', 'ember-t
16326
16499
  };
16327
16500
  /**
16328
16501
  @module ember
16329
- @submodule ember-template-compiler
16330
16502
  */
16331
16503
  var template = void 0;
16332
16504
  });
@@ -16358,7 +16530,6 @@ enifed('ember-template-compiler/system/precompile', ['exports', 'ember-template-
16358
16530
  };
16359
16531
  /**
16360
16532
  @module ember
16361
- @submodule ember-template-compiler
16362
16533
  */
16363
16534
 
16364
16535
  var glimmerPrecompile = void 0;
@@ -16417,6 +16588,10 @@ enifed('ember-utils', ['exports'], function (exports) {
16417
16588
  return str;
16418
16589
  }
16419
16590
 
16591
+ /**
16592
+ @module @ember/object
16593
+ */
16594
+
16420
16595
  /**
16421
16596
  Previously we used `Ember.$.uuid`, however `$.uuid` has been removed from
16422
16597
  jQuery master. We'll just bootstrap our own uuid now.
@@ -16492,7 +16667,8 @@ enifed('ember-utils', ['exports'], function (exports) {
16492
16667
 
16493
16668
  @private
16494
16669
  @method generateGuid
16495
- @for Ember
16670
+ @static
16671
+ @for @ember/object/internals
16496
16672
  @param {Object} [obj] Object the guid will be used for. If passed in, the guid will
16497
16673
  be saved on the object and reused whenever you pass the same object
16498
16674
  again.
@@ -16513,8 +16689,9 @@ enifed('ember-utils', ['exports'], function (exports) {
16513
16689
  You can also use this method on DOM Element objects.
16514
16690
 
16515
16691
  @public
16692
+ @static
16516
16693
  @method guidFor
16517
- @for Ember
16694
+ @for @ember/object/internals
16518
16695
  @param {Object} obj any object, string, number, Element, or primitive
16519
16696
  @return {String} the unique guid for this instance.
16520
16697
  */
@@ -16529,8 +16706,7 @@ enifed('ember-utils', ['exports'], function (exports) {
16529
16706
  }
16530
16707
 
16531
16708
  /**
16532
- @module ember
16533
- @submodule ember-runtime
16709
+ @module @ember/application
16534
16710
  */
16535
16711
 
16536
16712
  var OWNER = symbol('OWNER');
@@ -16552,7 +16728,7 @@ enifed('ember-utils', ['exports'], function (exports) {
16552
16728
  import Component from '@ember/component';
16553
16729
  import { computed } from '@ember/object';
16554
16730
  import { getOwner } from '@ember/application';
16555
-
16731
+
16556
16732
  // Usage:
16557
16733
  //
16558
16734
  // {{play-audio audioType=model.audioType audioFile=model.file}}
@@ -16571,7 +16747,8 @@ enifed('ember-utils', ['exports'], function (exports) {
16571
16747
  ```
16572
16748
 
16573
16749
  @method getOwner
16574
- @for Ember
16750
+ @static
16751
+ @for @ember/application
16575
16752
  @param {Object} object An object with an owner.
16576
16753
  @return {Object} An owner object.
16577
16754
  @since 2.3.0
@@ -16584,7 +16761,8 @@ enifed('ember-utils', ['exports'], function (exports) {
16584
16761
  useful in some testing cases.
16585
16762
 
16586
16763
  @method setOwner
16587
- @for Ember
16764
+ @static
16765
+ @for @ember/application
16588
16766
  @param {Object} object An object instance.
16589
16767
  @param {Object} object The new owner object of the object instance.
16590
16768
  @since 2.3.0
@@ -16592,6 +16770,9 @@ enifed('ember-utils', ['exports'], function (exports) {
16592
16770
  */
16593
16771
 
16594
16772
 
16773
+ /**
16774
+ @module @ember/polyfills
16775
+ */
16595
16776
  /**
16596
16777
  Copy properties from a source object to a target object.
16597
16778
 
@@ -16603,11 +16784,12 @@ enifed('ember-utils', ['exports'], function (exports) {
16603
16784
  ```
16604
16785
 
16605
16786
  @method assign
16606
- @for Ember
16787
+ @for @ember/polyfills
16607
16788
  @param {Object} original The object to assign into
16608
16789
  @param {Object} ...args The objects to copy properties from
16609
16790
  @return {Object}
16610
16791
  @public
16792
+ @static
16611
16793
  */
16612
16794
  function assign(original) {
16613
16795
  var i, arg, updates, _i, prop;
@@ -16702,7 +16884,9 @@ enifed('ember-utils', ['exports'], function (exports) {
16702
16884
  }
16703
16885
 
16704
16886
  var objectToString = Object.prototype.toString;
16705
-
16887
+ /**
16888
+ @module @ember/debug
16889
+ */
16706
16890
  /**
16707
16891
  Convenience method to inspect an object. This method will attempt to
16708
16892
  convert the object into a useful string description.
@@ -16711,7 +16895,7 @@ enifed('ember-utils', ['exports'], function (exports) {
16711
16895
  use something like JSDump: https://github.com/NV/jsDump
16712
16896
 
16713
16897
  @method inspect
16714
- @for Ember
16898
+ @static
16715
16899
  @param {Object} obj The object you want to inspect.
16716
16900
  @return {String} A description of the object
16717
16901
  @since 1.4.0
@@ -16792,6 +16976,9 @@ enifed('ember-utils', ['exports'], function (exports) {
16792
16976
 
16793
16977
  var isArray = Array.isArray;
16794
16978
 
16979
+ /**
16980
+ @module @ember/array
16981
+ */
16795
16982
  /**
16796
16983
  Forces the passed object to be part of an array. If the object is already
16797
16984
  an array, it will return the object. Otherwise, it will add the object to
@@ -16810,7 +16997,8 @@ enifed('ember-utils', ['exports'], function (exports) {
16810
16997
  ```
16811
16998
 
16812
16999
  @method makeArray
16813
- @for Ember
17000
+ @static
17001
+ @for @ember/array
16814
17002
  @param {Object} obj the object
16815
17003
  @return {Array}
16816
17004
  @private
@@ -17105,7 +17293,7 @@ enifed('ember/features', ['exports', 'ember-environment', 'ember-utils'], functi
17105
17293
  enifed("ember/version", ["exports"], function (exports) {
17106
17294
  "use strict";
17107
17295
 
17108
- exports.default = "2.16.0";
17296
+ exports.default = "2.16.1";
17109
17297
  });
17110
17298
  enifed("handlebars", ["exports"], function (exports) {
17111
17299
  "use strict";