ember-source 1.8.0.beta.5 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ember-source might be problematic. Click here for more details.

@@ -5,11 +5,11 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 1.8.0-beta.5
8
+ * @version 1.8.0
9
9
  */
10
10
 
11
11
  (function() {
12
- var define, requireModule, require, requirejs, Ember;
12
+ var enifed, requireModule, eriuqer, requirejs, Ember;
13
13
 
14
14
  (function() {
15
15
  Ember = this.Ember = this.Ember || {};
@@ -18,11 +18,11 @@ var define, requireModule, require, requirejs, Ember;
18
18
  if (typeof Ember.__loader === 'undefined') {
19
19
  var registry = {}, seen = {};
20
20
 
21
- define = function(name, deps, callback) {
21
+ enifed = function(name, deps, callback) {
22
22
  registry[name] = { deps: deps, callback: callback };
23
23
  };
24
24
 
25
- requirejs = require = requireModule = function(name) {
25
+ requirejs = eriuqer = requireModule = function(name) {
26
26
  if (seen.hasOwnProperty(name)) { return seen[name]; }
27
27
  seen[name] = {};
28
28
 
@@ -65,14 +65,14 @@ var define, requireModule, require, requirejs, Ember;
65
65
  };
66
66
  requirejs._eak_seen = registry;
67
67
 
68
- Ember.__loader = {define: define, require: require, registry: registry};
68
+ Ember.__loader = {define: enifed, require: eriuqer, registry: registry};
69
69
  } else {
70
- define = Ember.__loader.define;
71
- requirejs = require = requireModule = Ember.__loader.require;
70
+ enifed = Ember.__loader.define;
71
+ requirejs = eriuqer = requireModule = Ember.__loader.require;
72
72
  }
73
73
  })();
74
74
 
75
- define("backburner",
75
+ enifed("backburner",
76
76
  ["backburner/utils","backburner/platform","backburner/binary-search","backburner/deferred-action-queues","exports"],
77
77
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
78
78
  "use strict";
@@ -592,22 +592,22 @@ define("backburner",
592
592
 
593
593
  __exports__["default"] = Backburner;
594
594
  });
595
- define("backburner.umd",
595
+ enifed("backburner.umd",
596
596
  ["./backburner"],
597
597
  function(__dependency1__) {
598
598
  "use strict";
599
599
  var Backburner = __dependency1__["default"];
600
600
 
601
601
  /* global define:true module:true window: true */
602
- if (typeof define === 'function' && define.amd) {
603
- define(function() { return Backburner; });
602
+ if (typeof enifed === 'function' && enifed.amd) {
603
+ enifed(function() { return Backburner; });
604
604
  } else if (typeof module !== 'undefined' && module.exports) {
605
605
  module.exports = Backburner;
606
606
  } else if (typeof this !== 'undefined') {
607
607
  this['Backburner'] = Backburner;
608
608
  }
609
609
  });
610
- define("backburner/binary-search",
610
+ enifed("backburner/binary-search",
611
611
  ["exports"],
612
612
  function(__exports__) {
613
613
  "use strict";
@@ -635,7 +635,7 @@ define("backburner/binary-search",
635
635
  return (time >= timers[start]) ? start + 2 : start;
636
636
  }
637
637
  });
638
- define("backburner/deferred-action-queues",
638
+ enifed("backburner/deferred-action-queues",
639
639
  ["./utils","./queue","exports"],
640
640
  function(__dependency1__, __dependency2__, __exports__) {
641
641
  "use strict";
@@ -780,7 +780,7 @@ define("backburner/deferred-action-queues",
780
780
 
781
781
  __exports__["default"] = DeferredActionQueues;
782
782
  });
783
- define("backburner/platform",
783
+ enifed("backburner/platform",
784
784
  ["exports"],
785
785
  function(__exports__) {
786
786
  "use strict";
@@ -794,7 +794,7 @@ define("backburner/platform",
794
794
  })();
795
795
  __exports__.needsIETryCatchFix = needsIETryCatchFix;
796
796
  });
797
- define("backburner/queue",
797
+ enifed("backburner/queue",
798
798
  ["exports"],
799
799
  function(__exports__) {
800
800
  "use strict";
@@ -1000,7 +1000,7 @@ define("backburner/queue",
1000
1000
 
1001
1001
  __exports__["default"] = Queue;
1002
1002
  });
1003
- define("backburner/utils",
1003
+ enifed("backburner/utils",
1004
1004
  ["exports"],
1005
1005
  function(__exports__) {
1006
1006
  "use strict";
@@ -1044,17 +1044,17 @@ define("backburner/utils",
1044
1044
 
1045
1045
  __exports__.wrapInTryCatch = wrapInTryCatch;
1046
1046
  });
1047
- define("calculateVersion",
1047
+ enifed("calculateVersion",
1048
1048
  [],
1049
1049
  function() {
1050
1050
  "use strict";
1051
1051
  'use strict';
1052
1052
 
1053
- var fs = require('fs');
1054
- var path = require('path');
1053
+ var fs = eriuqer('fs');
1054
+ var path = eriuqer('path');
1055
1055
 
1056
1056
  module.exports = function () {
1057
- var packageVersion = require('../package.json').version;
1057
+ var packageVersion = eriuqer('../package.json').version;
1058
1058
  var output = [packageVersion];
1059
1059
  var gitPath = path.join(__dirname,'..','.git');
1060
1060
  var headFilePath = path.join(gitPath, 'HEAD');
@@ -1085,7 +1085,7 @@ define("calculateVersion",
1085
1085
  }
1086
1086
  };
1087
1087
  });
1088
- define("container",
1088
+ enifed("container",
1089
1089
  ["container/container","exports"],
1090
1090
  function(__dependency1__, __exports__) {
1091
1091
  "use strict";
@@ -1112,7 +1112,7 @@ define("container",
1112
1112
 
1113
1113
  __exports__["default"] = Container;
1114
1114
  });
1115
- define("container/container",
1115
+ enifed("container/container",
1116
1116
  ["ember-metal/core","ember-metal/keys","ember-metal/dictionary","exports"],
1117
1117
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
1118
1118
  "use strict";
@@ -1969,7 +1969,7 @@ define("container/container",
1969
1969
 
1970
1970
  __exports__["default"] = Container;
1971
1971
  });
1972
- define("ember-application",
1972
+ enifed("ember-application",
1973
1973
  ["ember-metal/core","ember-runtime/system/lazy_load","ember-application/system/dag","ember-application/system/resolver","ember-application/system/application","ember-application/ext/controller"],
1974
1974
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__) {
1975
1975
  "use strict";
@@ -1997,7 +1997,7 @@ define("ember-application",
1997
1997
 
1998
1998
  runLoadHooks('Ember.Application', Application);
1999
1999
  });
2000
- define("ember-application/ext/controller",
2000
+ enifed("ember-application/ext/controller",
2001
2001
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/error","ember-metal/utils","ember-metal/computed","ember-runtime/mixins/controller","ember-routing/system/controller_for","exports"],
2002
2002
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
2003
2003
  "use strict";
@@ -2177,7 +2177,7 @@ define("ember-application/ext/controller",
2177
2177
 
2178
2178
  __exports__["default"] = ControllerMixin;
2179
2179
  });
2180
- define("ember-application/system/application",
2180
+ enifed("ember-application/system/application",
2181
2181
  ["ember-metal","ember-metal/property_get","ember-metal/property_set","ember-runtime/system/lazy_load","ember-application/system/dag","ember-runtime/system/namespace","ember-runtime/mixins/deferred","ember-application/system/resolver","ember-metal/platform","ember-metal/run_loop","ember-metal/utils","container/container","ember-runtime/controllers/controller","ember-metal/enumerable_utils","ember-runtime/controllers/object_controller","ember-runtime/controllers/array_controller","ember-handlebars/controls/select","ember-views/system/event_dispatcher","ember-views/system/jquery","ember-routing/system/route","ember-routing/system/router","ember-routing/location/hash_location","ember-routing/location/history_location","ember-routing/location/auto_location","ember-routing/location/none_location","ember-routing/system/cache","ember-metal/core","ember-handlebars-compiler","exports"],
2182
2182
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __dependency19__, __dependency20__, __dependency21__, __dependency22__, __dependency23__, __dependency24__, __dependency25__, __dependency26__, __dependency27__, __dependency28__, __exports__) {
2183
2183
  "use strict";
@@ -2968,7 +2968,7 @@ define("ember-application/system/application",
2968
2968
  });
2969
2969
 
2970
2970
  Application.reopenClass({
2971
- initializers: Object.create(null),
2971
+ initializers: create(null),
2972
2972
 
2973
2973
  /**
2974
2974
  Initializer receives an object which has the following attributes:
@@ -3244,7 +3244,7 @@ define("ember-application/system/application",
3244
3244
 
3245
3245
  __exports__["default"] = Application;
3246
3246
  });
3247
- define("ember-application/system/dag",
3247
+ enifed("ember-application/system/dag",
3248
3248
  ["ember-metal/error","exports"],
3249
3249
  function(__dependency1__, __exports__) {
3250
3250
  "use strict";
@@ -3430,7 +3430,7 @@ define("ember-application/system/dag",
3430
3430
 
3431
3431
  __exports__["default"] = DAG;
3432
3432
  });
3433
- define("ember-application/system/resolver",
3433
+ enifed("ember-application/system/resolver",
3434
3434
  ["ember-metal/core","ember-metal/property_get","ember-metal/logger","ember-runtime/system/string","ember-runtime/system/object","ember-runtime/system/namespace","ember-handlebars","ember-metal/dictionary","exports"],
3435
3435
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
3436
3436
  "use strict";
@@ -3820,7 +3820,7 @@ define("ember-application/system/resolver",
3820
3820
  }
3821
3821
  });
3822
3822
  });
3823
- define("ember-debug",
3823
+ enifed("ember-debug",
3824
3824
  ["ember-metal/core","ember-metal/error","ember-metal/logger"],
3825
3825
  function(__dependency1__, __dependency2__, __dependency3__) {
3826
3826
  "use strict";
@@ -4013,7 +4013,7 @@ define("ember-debug",
4013
4013
  }
4014
4014
  }
4015
4015
  });
4016
- define("ember-extension-support",
4016
+ enifed("ember-extension-support",
4017
4017
  ["ember-metal/core","ember-extension-support/data_adapter","ember-extension-support/container_debug_adapter"],
4018
4018
  function(__dependency1__, __dependency2__, __dependency3__) {
4019
4019
  "use strict";
@@ -4032,7 +4032,7 @@ define("ember-extension-support",
4032
4032
  Ember.DataAdapter = DataAdapter;
4033
4033
  Ember.ContainerDebugAdapter = ContainerDebugAdapter;
4034
4034
  });
4035
- define("ember-extension-support/container_debug_adapter",
4035
+ enifed("ember-extension-support/container_debug_adapter",
4036
4036
  ["ember-metal/core","ember-runtime/system/native_array","ember-metal/utils","ember-runtime/system/string","ember-runtime/system/namespace","ember-runtime/system/object","exports"],
4037
4037
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) {
4038
4038
  "use strict";
@@ -4145,7 +4145,7 @@ define("ember-extension-support/container_debug_adapter",
4145
4145
  }
4146
4146
  });
4147
4147
  });
4148
- define("ember-extension-support/data_adapter",
4148
+ enifed("ember-extension-support/data_adapter",
4149
4149
  ["ember-metal/core","ember-metal/property_get","ember-metal/run_loop","ember-runtime/system/string","ember-runtime/system/namespace","ember-runtime/system/object","ember-runtime/system/native_array","ember-application/system/application","exports"],
4150
4150
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
4151
4151
  "use strict";
@@ -4645,17 +4645,21 @@ define("ember-extension-support/data_adapter",
4645
4645
  }
4646
4646
  });
4647
4647
  });
4648
- define("ember-extension-support/initializers",
4648
+ enifed("ember-extension-support/initializers",
4649
4649
  [],
4650
4650
  function() {
4651
4651
  "use strict";
4652
4652
 
4653
4653
  });
4654
- define("ember-handlebars-compiler",
4654
+ enifed("ember-handlebars-compiler",
4655
4655
  ["ember-metal/core","exports"],
4656
4656
  function(__dependency1__, __exports__) {
4657
- "use strict";
4658
- /* global Handlebars:true */
4657
+ /* global Handlebars:true */
4658
+
4659
+ // Remove "use strict"; from transpiled module (in browser builds only) until
4660
+ // https://bugs.webkit.org/show_bug.cgi?id=138038 is fixed
4661
+ //
4662
+ // REMOVE_USE_STRICT: true
4659
4663
 
4660
4664
  /**
4661
4665
  @module ember
@@ -4680,8 +4684,8 @@ define("ember-handlebars-compiler",
4680
4684
  // ES6Todo: when ember-debug is es6'ed import this.
4681
4685
  // var emberAssert = Ember.assert;
4682
4686
  var Handlebars = (Ember.imports && Ember.imports.Handlebars) || (this && this.Handlebars);
4683
- if (!Handlebars && typeof require === 'function') {
4684
- Handlebars = require('handlebars');
4687
+ if (!Handlebars && typeof eriuqer === 'function') {
4688
+ Handlebars = eriuqer('handlebars');
4685
4689
  }
4686
4690
 
4687
4691
  Ember.assert("Ember Handlebars requires Handlebars version 1.0 or 1.1. Include " +
@@ -4977,7 +4981,7 @@ define("ember-handlebars-compiler",
4977
4981
 
4978
4982
  __exports__["default"] = EmberHandlebars;
4979
4983
  });
4980
- define("ember-handlebars",
4984
+ enifed("ember-handlebars",
4981
4985
  ["ember-handlebars-compiler","ember-metal/core","ember-runtime/system/lazy_load","ember-handlebars/loader","ember-handlebars/ext","ember-handlebars/string","ember-handlebars/helpers/shared","ember-handlebars/helpers/binding","ember-handlebars/helpers/collection","ember-handlebars/helpers/view","ember-handlebars/helpers/unbound","ember-handlebars/helpers/debug","ember-handlebars/helpers/each","ember-handlebars/helpers/template","ember-handlebars/helpers/partial","ember-handlebars/helpers/yield","ember-handlebars/helpers/loc","ember-handlebars/controls/checkbox","ember-handlebars/controls/select","ember-handlebars/controls/text_area","ember-handlebars/controls/text_field","ember-handlebars/controls/text_support","ember-handlebars/controls","ember-handlebars/component_lookup","ember-handlebars/views/handlebars_bound_view","ember-handlebars/views/metamorph_view","exports"],
4982
4986
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __dependency19__, __dependency20__, __dependency21__, __dependency22__, __dependency23__, __dependency24__, __dependency25__, __dependency26__, __exports__) {
4983
4987
  "use strict";
@@ -5128,7 +5132,7 @@ define("ember-handlebars",
5128
5132
 
5129
5133
  __exports__["default"] = EmberHandlebars;
5130
5134
  });
5131
- define("ember-handlebars/component_lookup",
5135
+ enifed("ember-handlebars/component_lookup",
5132
5136
  ["ember-runtime/system/object","exports"],
5133
5137
  function(__dependency1__, __exports__) {
5134
5138
  "use strict";
@@ -5163,7 +5167,7 @@ define("ember-handlebars/component_lookup",
5163
5167
 
5164
5168
  __exports__["default"] = ComponentLookup;
5165
5169
  });
5166
- define("ember-handlebars/controls",
5170
+ enifed("ember-handlebars/controls",
5167
5171
  ["ember-handlebars/controls/checkbox","ember-handlebars/controls/text_field","ember-handlebars/controls/text_area","ember-metal/core","ember-handlebars-compiler","ember-handlebars/ext","exports"],
5168
5172
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) {
5169
5173
  "use strict";
@@ -5254,7 +5258,7 @@ define("ember-handlebars/controls",
5254
5258
 
5255
5259
  The helper can send multiple actions based on user events.
5256
5260
 
5257
- The action property defines the action which is send when
5261
+ The action property defines the action which is sent when
5258
5262
  the user presses the return key.
5259
5263
 
5260
5264
  ```handlebars
@@ -5270,6 +5274,7 @@ define("ember-handlebars/controls",
5270
5274
  * `focus-out`
5271
5275
  * `key-press`
5272
5276
 
5277
+
5273
5278
  For example, if you desire an action to be sent when the input is blurred,
5274
5279
  you only need to setup the action name to the event name property.
5275
5280
 
@@ -5585,7 +5590,7 @@ define("ember-handlebars/controls",
5585
5590
 
5586
5591
  __exports__.textareaHelper = textareaHelper;
5587
5592
  });
5588
- define("ember-handlebars/controls/checkbox",
5593
+ enifed("ember-handlebars/controls/checkbox",
5589
5594
  ["ember-metal/property_get","ember-metal/property_set","ember-views/views/view","exports"],
5590
5595
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
5591
5596
  "use strict";
@@ -5661,7 +5666,7 @@ define("ember-handlebars/controls/checkbox",
5661
5666
  }
5662
5667
  });
5663
5668
  });
5664
- define("ember-handlebars/controls/select",
5669
+ enifed("ember-handlebars/controls/select",
5665
5670
  ["ember-handlebars-compiler","ember-metal/enumerable_utils","ember-metal/property_get","ember-metal/property_set","ember-views/views/view","ember-views/views/collection_view","ember-metal/utils","ember-metal/is_none","ember-metal/computed","ember-runtime/system/native_array","ember-metal/mixin","ember-metal/properties","exports"],
5666
5671
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) {
5667
5672
  "use strict";
@@ -6343,7 +6348,7 @@ define("ember-handlebars/controls/select",
6343
6348
  __exports__.SelectOption = SelectOption;
6344
6349
  __exports__.SelectOptgroup = SelectOptgroup;
6345
6350
  });
6346
- define("ember-handlebars/controls/text_area",
6351
+ enifed("ember-handlebars/controls/text_area",
6347
6352
  ["ember-metal/property_get","ember-views/views/component","ember-handlebars/controls/text_support","ember-metal/mixin","exports"],
6348
6353
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
6349
6354
  "use strict";
@@ -6399,7 +6404,7 @@ define("ember-handlebars/controls/text_area",
6399
6404
  }
6400
6405
  });
6401
6406
  });
6402
- define("ember-handlebars/controls/text_field",
6407
+ enifed("ember-handlebars/controls/text_field",
6403
6408
  ["ember-metal/property_get","ember-metal/property_set","ember-views/views/component","ember-handlebars/controls/text_support","exports"],
6404
6409
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
6405
6410
  "use strict";
@@ -6500,7 +6505,7 @@ define("ember-handlebars/controls/text_field",
6500
6505
  max: null
6501
6506
  });
6502
6507
  });
6503
- define("ember-handlebars/controls/text_support",
6508
+ enifed("ember-handlebars/controls/text_support",
6504
6509
  ["ember-metal/property_get","ember-metal/property_set","ember-metal/mixin","ember-runtime/mixins/target_action_support","exports"],
6505
6510
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
6506
6511
  "use strict";
@@ -6571,7 +6576,7 @@ define("ember-handlebars/controls/text_support",
6571
6576
  onEvent: 'enter',
6572
6577
 
6573
6578
  /**
6574
- Whether they `keyUp` event that triggers an `action` to be sent continues
6579
+ Whether the `keyUp` event that triggers an `action` to be sent continues
6575
6580
  propagating to other views.
6576
6581
 
6577
6582
  By default, when the user presses the return key on their keyboard and
@@ -6696,7 +6701,7 @@ define("ember-handlebars/controls/text_support",
6696
6701
 
6697
6702
  __exports__["default"] = TextSupport;
6698
6703
  });
6699
- define("ember-handlebars/ext",
6704
+ enifed("ember-handlebars/ext",
6700
6705
  ["ember-metal/core","ember-runtime/system/string","ember-handlebars-compiler","ember-metal/property_get","ember-metal/error","ember-metal/mixin","ember-views/views/view","ember-handlebars/views/metamorph_view","ember-metal/path_cache","ember-metal/is_empty","ember-metal/cache","exports"],
6701
6706
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __exports__) {
6702
6707
  "use strict";
@@ -6823,6 +6828,20 @@ define("ember-handlebars/ext",
6823
6828
  return value;
6824
6829
  }
6825
6830
 
6831
+ function lookupViewInContainer(container, path) {
6832
+ Ember.assert("View requires a container to resolve views not passed in through the context", !!container);
6833
+ return container.lookupFactory('view:'+path);
6834
+ }
6835
+
6836
+ function lookupViewByClassName(path) {
6837
+ var viewClass;
6838
+ if (detectIsGlobal(path)) {
6839
+ viewClass = get(path);
6840
+ Ember.deprecate('Resolved the view "'+path+'" on the global context. Pass a view name to be looked up on the container instead, such as {{view "select"}}. http://emberjs.com/guides/deprecations#toc_global-lookup-of-views-since-1-8', !viewClass);
6841
+ return viewClass;
6842
+ }
6843
+ }
6844
+
6826
6845
  /**
6827
6846
  handlebarsGetView resolves a view based on strings passed into a template.
6828
6847
  For example:
@@ -6847,31 +6866,42 @@ define("ember-handlebars/ext",
6847
6866
  @param {Object} context The context of the template being rendered
6848
6867
  @param {String} path The path to be lookedup
6849
6868
  @param {Object} container The container
6850
- @param {Object} data The template's data hash
6869
+ @param {Object} options The options from the template
6851
6870
  */
6852
- function handlebarsGetView(context, path, container, data) {
6871
+ function handlebarsGetView(context, path, container, options) {
6853
6872
  var viewClass;
6873
+ var data;
6874
+ var pathType;
6875
+ if (options) {
6876
+ data = options.data;
6877
+ pathType = options.types && options.types[0];
6878
+ }
6879
+
6854
6880
  if ('string' === typeof path) {
6855
- if (data) {
6856
- var normalizedPath = normalizePath(context, path, data);
6857
- context = normalizedPath.root;
6858
- path = normalizedPath.path;
6859
- }
6881
+ if('STRING' === pathType && container) {
6882
+ viewClass = lookupViewInContainer(container, path);
6883
+ Ember.deprecate('Quoted view names must refer to a view in the container.', viewClass);
6860
6884
 
6861
- // Only lookup view class on context if there is a context. If not,
6862
- // the global lookup path on get may kick in.
6863
- viewClass = context && get(context, path);
6864
- var isGlobal = detectIsGlobal(path);
6885
+ }
6865
6886
 
6866
- if (!viewClass && !isGlobal) {
6867
- Ember.assert("View requires a container to resolve views not passed in through the context", !!container);
6868
- viewClass = container.lookupFactory('view:'+path);
6887
+ if(!viewClass) {
6888
+ viewClass = lookupViewByClassName(path);
6869
6889
  }
6870
- if (!viewClass && isGlobal) {
6871
- var globalViewClass = get(path);
6872
- Ember.deprecate('Resolved the view "'+path+'" on the global context. Pass a view name to be looked up on the container instead, such as {{view "select"}}. http://emberjs.com/guides/deprecations#toc_global-lookup-of-views-since-1-8', !globalViewClass);
6873
- if (globalViewClass) {
6874
- viewClass = globalViewClass;
6890
+
6891
+ if(!viewClass) {
6892
+ if (data) {
6893
+ var normalizedPath = normalizePath(context, path, data);
6894
+ context = normalizedPath.root;
6895
+ path = normalizedPath.path;
6896
+ }
6897
+
6898
+ // Only lookup view class on context if there is a context. If not,
6899
+ // the global lookup path on get may kick in.
6900
+ viewClass = context && get(context, path);
6901
+
6902
+ if(!viewClass) {
6903
+ // try the container once more with the normalized path
6904
+ viewClass = lookupViewInContainer(container, path);
6875
6905
  }
6876
6906
  }
6877
6907
  } else {
@@ -6880,7 +6910,10 @@ define("ember-handlebars/ext",
6880
6910
 
6881
6911
  // Sometimes a view's value is yet another path
6882
6912
  if ('string' === typeof viewClass && data && data.view) {
6883
- viewClass = handlebarsGetView(data.view, viewClass, container, data);
6913
+ viewClass = handlebarsGetView(data.view, viewClass, container, {
6914
+ data: data,
6915
+ types: ['ID']
6916
+ });
6884
6917
  }
6885
6918
 
6886
6919
  Ember.assert(
@@ -7345,7 +7378,7 @@ define("ember-handlebars/ext",
7345
7378
  __exports__.handlebarsGetView = handlebarsGetView;
7346
7379
  __exports__.evaluateUnboundHelper = evaluateUnboundHelper;
7347
7380
  });
7348
- define("ember-handlebars/helpers/binding",
7381
+ enifed("ember-handlebars/helpers/binding",
7349
7382
  ["ember-metal/core","ember-handlebars-compiler","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-runtime/system/string","ember-metal/platform","ember-metal/is_none","ember-metal/enumerable_utils","ember-metal/array","ember-views/views/view","ember-metal/run_loop","ember-metal/observer","ember-metal/binding","ember-views/system/jquery","ember-handlebars/ext","ember-metal/keys","ember-metal/cache","ember-handlebars/views/handlebars_bound_view","exports"],
7350
7383
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __dependency19__, __exports__) {
7351
7384
  "use strict";
@@ -7462,78 +7495,71 @@ define("ember-handlebars/helpers/binding",
7462
7495
 
7463
7496
  normalized = normalizePath(currentContext, property, data);
7464
7497
 
7465
- // Set up observers for observable objects
7466
- if ('object' === typeof this) {
7467
- if (data.insideGroup) {
7468
- observer = function() {
7469
- while (view._contextView) {
7470
- view = view._contextView;
7471
- }
7472
- run.once(view, 'rerender');
7473
- };
7498
+ if (data.insideGroup) {
7499
+ observer = function() {
7500
+ while (view._contextView) {
7501
+ view = view._contextView;
7502
+ }
7503
+ run.once(view, 'rerender');
7504
+ };
7474
7505
 
7475
- var template, context;
7476
- var result = handlebarsGet(currentContext, property, options);
7506
+ var template, context;
7507
+ var result = handlebarsGet(currentContext, property, options);
7477
7508
 
7478
- result = valueNormalizer ? valueNormalizer(result) : result;
7509
+ result = valueNormalizer ? valueNormalizer(result) : result;
7479
7510
 
7480
- context = preserveContext ? currentContext : result;
7481
- if (shouldDisplay(result)) {
7482
- template = fn;
7483
- } else if (inverse) {
7484
- template = inverse;
7485
- }
7511
+ context = preserveContext ? currentContext : result;
7512
+ if (shouldDisplay(result)) {
7513
+ template = fn;
7514
+ } else if (inverse) {
7515
+ template = inverse;
7516
+ }
7486
7517
 
7487
- template(context, { data: options.data });
7488
- } else {
7489
- var viewClass = _HandlebarsBoundView;
7490
- var viewOptions = {
7491
- preserveContext: preserveContext,
7492
- shouldDisplayFunc: shouldDisplay,
7493
- valueNormalizerFunc: valueNormalizer,
7494
- displayTemplate: fn,
7495
- inverseTemplate: inverse,
7496
- path: property,
7497
- pathRoot: currentContext,
7498
- previousContext: currentContext,
7499
- isEscaped: !options.hash.unescaped,
7500
- templateData: options.data,
7501
- templateHash: options.hash,
7502
- helperName: options.helperName
7503
- };
7518
+ template(context, { data: options.data });
7519
+ } else {
7520
+ var viewClass = _HandlebarsBoundView;
7521
+ var viewOptions = {
7522
+ preserveContext: preserveContext,
7523
+ shouldDisplayFunc: shouldDisplay,
7524
+ valueNormalizerFunc: valueNormalizer,
7525
+ displayTemplate: fn,
7526
+ inverseTemplate: inverse,
7527
+ path: property,
7528
+ pathRoot: currentContext,
7529
+ previousContext: currentContext,
7530
+ isEscaped: !options.hash.unescaped,
7531
+ templateData: options.data,
7532
+ templateHash: options.hash,
7533
+ helperName: options.helperName
7534
+ };
7504
7535
 
7505
- if (options.isWithHelper) {
7506
- viewClass = WithView;
7507
- }
7536
+ if (options.isWithHelper) {
7537
+ viewClass = WithView;
7538
+ }
7508
7539
 
7509
- // Create the view that will wrap the output of this template/property
7510
- // and add it to the nearest view's childViews array.
7511
- // See the documentation of Ember._HandlebarsBoundView for more.
7512
- var bindView = view.createChildView(viewClass, viewOptions);
7540
+ // Create the view that will wrap the output of this template/property
7541
+ // and add it to the nearest view's childViews array.
7542
+ // See the documentation of Ember._HandlebarsBoundView for more.
7543
+ var bindView = view.createChildView(viewClass, viewOptions);
7513
7544
 
7514
- view.appendChild(bindView);
7545
+ view.appendChild(bindView);
7515
7546
 
7516
- observer = function() {
7517
- run.scheduleOnce('render', bindView, 'rerenderIfNeeded');
7518
- };
7519
- }
7547
+ observer = function() {
7548
+ run.scheduleOnce('render', bindView, 'rerenderIfNeeded');
7549
+ };
7550
+ }
7520
7551
 
7521
- // Observes the given property on the context and
7522
- // tells the Ember._HandlebarsBoundView to re-render. If property
7523
- // is an empty string, we are printing the current context
7524
- // object ({{this}}) so updating it is not our responsibility.
7525
- if (normalized.path !== '') {
7526
- view.registerObserver(normalized.root, normalized.path, observer);
7527
- if (childProperties) {
7528
- for (i=0; i<childProperties.length; i++) {
7529
- view.registerObserver(normalized.root, normalized.path+'.'+childProperties[i], observer);
7530
- }
7552
+ // Observes the given property on the context and
7553
+ // tells the Ember._HandlebarsBoundView to re-render. If property
7554
+ // is an empty string, we are printing the current context
7555
+ // object ({{this}}) so updating it is not our responsibility.
7556
+ if (typeof this === 'object' && normalized.path !== '') {
7557
+ view.registerObserver(normalized.root, normalized.path, observer);
7558
+ if (childProperties) {
7559
+ for (i=0; i<childProperties.length; i++) {
7560
+ view.registerObserver(normalized.root, normalized.path+'.'+childProperties[i], observer);
7531
7561
  }
7532
7562
  }
7533
- } else {
7534
- // The object is not observable, so just render it out and
7535
- // be done with it.
7536
- data.buffer.push(handlebarsGetEscaped(currentContext, property, options));
7537
7563
  }
7538
7564
  }
7539
7565
 
@@ -8309,7 +8335,7 @@ define("ember-handlebars/helpers/binding",
8309
8335
  __exports__.bindAttrHelperDeprecated = bindAttrHelperDeprecated;
8310
8336
  __exports__.bindClasses = bindClasses;
8311
8337
  });
8312
- define("ember-handlebars/helpers/collection",
8338
+ enifed("ember-handlebars/helpers/collection",
8313
8339
  ["ember-metal/core","ember-metal/utils","ember-handlebars-compiler","ember-runtime/system/string","ember-metal/property_get","ember-handlebars/ext","ember-handlebars/helpers/view","ember-metal/computed","ember-views/views/collection_view","exports"],
8314
8340
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __exports__) {
8315
8341
  "use strict";
@@ -8487,7 +8513,7 @@ define("ember-handlebars/helpers/collection",
8487
8513
  // Otherwise, just default to the standard class.
8488
8514
  var collectionClass;
8489
8515
  if (path) {
8490
- collectionClass = handlebarsGetView(this, path, container, options.data);
8516
+ collectionClass = handlebarsGetView(this, path, container, options);
8491
8517
  Ember.assert(fmt("%@ #collection: Could not find collection class %@", [data.view, path]), !!collectionClass);
8492
8518
  }
8493
8519
  else {
@@ -8503,11 +8529,11 @@ define("ember-handlebars/helpers/collection",
8503
8529
  var itemViewClass;
8504
8530
 
8505
8531
  if (hash.itemView) {
8506
- itemViewClass = handlebarsGetView(this, hash.itemView, container, options.data);
8532
+ itemViewClass = handlebarsGetView(this, hash.itemView, container, options);
8507
8533
  } else if (hash.itemViewClass) {
8508
- itemViewClass = handlebarsGetView(collectionPrototype, hash.itemViewClass, container, options.data);
8534
+ itemViewClass = handlebarsGetView(collectionPrototype, hash.itemViewClass, container, options);
8509
8535
  } else {
8510
- itemViewClass = handlebarsGetView(collectionPrototype, collectionPrototype.itemViewClass, container, options.data);
8536
+ itemViewClass = handlebarsGetView(collectionPrototype, collectionPrototype.itemViewClass, container, options);
8511
8537
  }
8512
8538
 
8513
8539
  Ember.assert(fmt("%@ #collection: Could not find itemViewClass %@", [data.view, itemViewClass]), !!itemViewClass);
@@ -8544,7 +8570,7 @@ define("ember-handlebars/helpers/collection",
8544
8570
  tagName: itemHash.tagName
8545
8571
  });
8546
8572
  } else if (hash.emptyViewClass) {
8547
- emptyViewClass = handlebarsGetView(this, hash.emptyViewClass, container, options.data);
8573
+ emptyViewClass = handlebarsGetView(this, hash.emptyViewClass, container, options);
8548
8574
  }
8549
8575
  if (emptyViewClass) { hash.emptyView = emptyViewClass; }
8550
8576
 
@@ -8564,7 +8590,7 @@ define("ember-handlebars/helpers/collection",
8564
8590
 
8565
8591
  __exports__["default"] = collectionHelper;
8566
8592
  });
8567
- define("ember-handlebars/helpers/debug",
8593
+ enifed("ember-handlebars/helpers/debug",
8568
8594
  ["ember-metal/core","ember-metal/utils","ember-metal/logger","ember-metal/property_get","ember-handlebars/ext","exports"],
8569
8595
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
8570
8596
  "use strict";
@@ -8671,7 +8697,7 @@ define("ember-handlebars/helpers/debug",
8671
8697
  __exports__.logHelper = logHelper;
8672
8698
  __exports__.debuggerHelper = debuggerHelper;
8673
8699
  });
8674
- define("ember-handlebars/helpers/each",
8700
+ enifed("ember-handlebars/helpers/each",
8675
8701
  ["ember-metal/core","ember-handlebars-compiler","ember-runtime/system/string","ember-metal/property_get","ember-metal/property_set","ember-views/views/collection_view","ember-metal/binding","ember-runtime/mixins/controller","ember-runtime/controllers/array_controller","ember-runtime/mixins/array","ember-runtime/copy","ember-metal/run_loop","ember-metal/events","ember-handlebars/ext","ember-metal/computed","ember-metal/observer","ember-handlebars/views/metamorph_view","exports"],
8676
8702
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __exports__) {
8677
8703
  "use strict";
@@ -9161,7 +9187,7 @@ define("ember-handlebars/helpers/each",
9161
9187
  __exports__.GroupedEach = GroupedEach;
9162
9188
  __exports__.eachHelper = eachHelper;
9163
9189
  });
9164
- define("ember-handlebars/helpers/loc",
9190
+ enifed("ember-handlebars/helpers/loc",
9165
9191
  ["ember-runtime/system/string","exports"],
9166
9192
  function(__dependency1__, __exports__) {
9167
9193
  "use strict";
@@ -9206,7 +9232,7 @@ define("ember-handlebars/helpers/loc",
9206
9232
  */
9207
9233
  __exports__["default"] = loc;
9208
9234
  });
9209
- define("ember-handlebars/helpers/partial",
9235
+ enifed("ember-handlebars/helpers/partial",
9210
9236
  ["ember-metal/core","ember-metal/is_none","ember-handlebars/ext","ember-handlebars/helpers/binding","exports"],
9211
9237
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
9212
9238
  "use strict";
@@ -9317,7 +9343,7 @@ define("ember-handlebars/helpers/partial",
9317
9343
  template(context, { data: options.data });
9318
9344
  }
9319
9345
  });
9320
- define("ember-handlebars/helpers/shared",
9346
+ enifed("ember-handlebars/helpers/shared",
9321
9347
  ["ember-handlebars/ext","exports"],
9322
9348
  function(__dependency1__, __exports__) {
9323
9349
  "use strict";
@@ -9336,7 +9362,7 @@ define("ember-handlebars/helpers/shared",
9336
9362
  return ret;
9337
9363
  }
9338
9364
  });
9339
- define("ember-handlebars/helpers/template",
9365
+ enifed("ember-handlebars/helpers/template",
9340
9366
  ["ember-metal/core","ember-handlebars-compiler","exports"],
9341
9367
  function(__dependency1__, __dependency2__, __exports__) {
9342
9368
  "use strict";
@@ -9364,7 +9390,7 @@ define("ember-handlebars/helpers/template",
9364
9390
  return helpers.partial.apply(this, arguments);
9365
9391
  }
9366
9392
  });
9367
- define("ember-handlebars/helpers/unbound",
9393
+ enifed("ember-handlebars/helpers/unbound",
9368
9394
  ["ember-handlebars-compiler","ember-handlebars/helpers/binding","ember-handlebars/ext","exports"],
9369
9395
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
9370
9396
  "use strict";
@@ -9422,7 +9448,7 @@ define("ember-handlebars/helpers/unbound",
9422
9448
  return handlebarsGet(context, property, fn);
9423
9449
  }
9424
9450
  });
9425
- define("ember-handlebars/helpers/view",
9451
+ enifed("ember-handlebars/helpers/view",
9426
9452
  ["ember-metal/core","ember-runtime/system/object","ember-metal/property_get","ember-metal/property_set","ember-metal/mixin","ember-views/system/jquery","ember-views/views/view","ember-metal/binding","ember-metal/keys","ember-handlebars/ext","ember-runtime/system/string","exports"],
9427
9453
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __exports__) {
9428
9454
  "use strict";
@@ -9597,7 +9623,7 @@ define("ember-handlebars/helpers/view",
9597
9623
  makeBindings(thisContext, options);
9598
9624
 
9599
9625
  var container = this.container || (data && data.view && data.view.container);
9600
- newView = handlebarsGetView(thisContext, path, container, options.data);
9626
+ newView = handlebarsGetView(thisContext, path, container, options);
9601
9627
 
9602
9628
  var viewOptions = this.propertiesFromHTMLOptions(options, thisContext);
9603
9629
  var currentView = data.view;
@@ -9847,7 +9873,7 @@ define("ember-handlebars/helpers/view",
9847
9873
 
9848
9874
  __exports__.viewHelper = viewHelper;
9849
9875
  });
9850
- define("ember-handlebars/helpers/yield",
9876
+ enifed("ember-handlebars/helpers/yield",
9851
9877
  ["ember-metal/core","ember-metal/property_get","exports"],
9852
9878
  function(__dependency1__, __dependency2__, __exports__) {
9853
9879
  "use strict";
@@ -9959,7 +9985,7 @@ define("ember-handlebars/helpers/yield",
9959
9985
  view._yield(this, options);
9960
9986
  }
9961
9987
  });
9962
- define("ember-handlebars/loader",
9988
+ enifed("ember-handlebars/loader",
9963
9989
  ["ember-handlebars/component_lookup","ember-views/system/jquery","ember-metal/error","ember-runtime/system/lazy_load","ember-handlebars-compiler","exports"],
9964
9990
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
9965
9991
  "use strict";
@@ -10057,7 +10083,7 @@ define("ember-handlebars/loader",
10057
10083
 
10058
10084
  __exports__["default"] = bootstrap;
10059
10085
  });
10060
- define("ember-handlebars/string",
10086
+ enifed("ember-handlebars/string",
10061
10087
  ["ember-runtime/system/string","exports"],
10062
10088
  function(__dependency1__, __exports__) {
10063
10089
  "use strict";
@@ -10105,7 +10131,7 @@ define("ember-handlebars/string",
10105
10131
 
10106
10132
  __exports__["default"] = htmlSafe;
10107
10133
  });
10108
- define("ember-handlebars/views/handlebars_bound_view",
10134
+ enifed("ember-handlebars/views/handlebars_bound_view",
10109
10135
  ["ember-handlebars-compiler","ember-metal/core","ember-metal/error","ember-metal/property_get","ember-metal/property_set","ember-metal/merge","ember-metal/run_loop","ember-metal/computed","ember-views/views/view","ember-views/views/states","ember-handlebars/views/metamorph_view","ember-handlebars/ext","ember-metal/utils","exports"],
10110
10136
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __exports__) {
10111
10137
  "use strict";
@@ -10192,9 +10218,7 @@ define("ember-handlebars/views/handlebars_bound_view",
10192
10218
  result = handlebarsGet(pathRoot, path, { data: templateData });
10193
10219
  }
10194
10220
 
10195
- if (result === null || result === undefined) {
10196
- result = "";
10197
- } else if (!escape && !(result instanceof SafeString)) {
10221
+ if (!escape && !(result instanceof SafeString)) {
10198
10222
  result = new SafeString(result);
10199
10223
  }
10200
10224
 
@@ -10454,7 +10478,7 @@ define("ember-handlebars/views/handlebars_bound_view",
10454
10478
  __exports__._HandlebarsBoundView = _HandlebarsBoundView;
10455
10479
  __exports__.SimpleHandlebarsView = SimpleHandlebarsView;
10456
10480
  });
10457
- define("ember-handlebars/views/metamorph_view",
10481
+ enifed("ember-handlebars/views/metamorph_view",
10458
10482
  ["ember-metal/core","ember-views/views/core_view","ember-views/views/view","ember-metal/mixin","ember-metal/run_loop","exports"],
10459
10483
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
10460
10484
  "use strict";
@@ -10517,14 +10541,14 @@ define("ember-handlebars/views/metamorph_view",
10517
10541
  var _SimpleMetamorphView = CoreView.extend(_Metamorph);
10518
10542
  __exports__._SimpleMetamorphView = _SimpleMetamorphView;__exports__["default"] = View.extend(_Metamorph);
10519
10543
  });
10520
- define("ember-metal-views",
10544
+ enifed("ember-metal-views",
10521
10545
  ["ember-metal-views/renderer","exports"],
10522
10546
  function(__dependency1__, __exports__) {
10523
10547
  "use strict";
10524
10548
  var Renderer = __dependency1__["default"];
10525
10549
  __exports__.Renderer = Renderer;
10526
10550
  });
10527
- define("ember-metal-views/renderer",
10551
+ enifed("ember-metal-views/renderer",
10528
10552
  ["morph","exports"],
10529
10553
  function(__dependency1__, __exports__) {
10530
10554
  "use strict";
@@ -10816,7 +10840,7 @@ define("ember-metal-views/renderer",
10816
10840
 
10817
10841
  __exports__["default"] = Renderer;
10818
10842
  });
10819
- define("ember-metal",
10843
+ enifed("ember-metal",
10820
10844
  ["ember-metal/core","ember-metal/merge","ember-metal/instrumentation","ember-metal/utils","ember-metal/error","ember-metal/enumerable_utils","ember-metal/cache","ember-metal/platform","ember-metal/array","ember-metal/logger","ember-metal/property_get","ember-metal/events","ember-metal/observer_set","ember-metal/property_events","ember-metal/properties","ember-metal/property_set","ember-metal/map","ember-metal/get_properties","ember-metal/set_properties","ember-metal/watch_key","ember-metal/chains","ember-metal/watch_path","ember-metal/watching","ember-metal/expand_properties","ember-metal/computed","ember-metal/computed_macros","ember-metal/observer","ember-metal/mixin","ember-metal/binding","ember-metal/run_loop","ember-metal/libraries","ember-metal/is_none","ember-metal/is_empty","ember-metal/is_blank","ember-metal/is_present","ember-metal/keys","exports"],
10821
10845
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __dependency19__, __dependency20__, __dependency21__, __dependency22__, __dependency23__, __dependency24__, __dependency25__, __dependency26__, __dependency27__, __dependency28__, __dependency29__, __dependency30__, __dependency31__, __dependency32__, __dependency33__, __dependency34__, __dependency35__, __dependency36__, __exports__) {
10822
10846
  "use strict";
@@ -10859,11 +10883,11 @@ define("ember-metal",
10859
10883
  var EnumerableUtils = __dependency6__["default"];
10860
10884
  var Cache = __dependency7__["default"];
10861
10885
  var create = __dependency8__.create;
10862
- var platform = __dependency8__.platform;
10863
- var map = __dependency9__.map;
10864
- var forEach = __dependency9__.forEach;
10886
+ var hasPropertyAccessors = __dependency8__.hasPropertyAccessors;
10865
10887
  var filter = __dependency9__.filter;
10888
+ var forEach = __dependency9__.forEach;
10866
10889
  var indexOf = __dependency9__.indexOf;
10890
+ var map = __dependency9__.map;
10867
10891
  var Logger = __dependency10__["default"];
10868
10892
 
10869
10893
  var get = __dependency11__.get;
@@ -10972,7 +10996,10 @@ define("ember-metal",
10972
10996
  Ember.GUID_KEY = GUID_KEY;
10973
10997
  Ember.create = create;
10974
10998
  Ember.keys = keys;
10975
- Ember.platform = platform;
10999
+ Ember.platform = {
11000
+ defineProperty: defineProperty,
11001
+ hasPropertyAccessors: hasPropertyAccessors
11002
+ };
10976
11003
 
10977
11004
  var EmberArrayPolyfills = Ember.ArrayPolyfills = {};
10978
11005
 
@@ -11143,7 +11170,7 @@ define("ember-metal",
11143
11170
 
11144
11171
  __exports__["default"] = Ember;
11145
11172
  });
11146
- define("ember-metal/alias",
11173
+ enifed("ember-metal/alias",
11147
11174
  ["ember-metal/property_get","ember-metal/property_set","ember-metal/error","ember-metal/properties","ember-metal/computed","ember-metal/platform","ember-metal/utils","ember-metal/dependent_keys","exports"],
11148
11175
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
11149
11176
  "use strict";
@@ -11223,7 +11250,7 @@ define("ember-metal/alias",
11223
11250
  AliasedProperty.prototype._meta = undefined;
11224
11251
  AliasedProperty.prototype.meta = ComputedProperty.prototype.meta;
11225
11252
  });
11226
- define("ember-metal/array",
11253
+ enifed("ember-metal/array",
11227
11254
  ["exports"],
11228
11255
  function(__exports__) {
11229
11256
  "use strict";
@@ -11354,7 +11381,7 @@ define("ember-metal/array",
11354
11381
  __exports__.indexOf = indexOf;
11355
11382
  __exports__.lastIndexOf = lastIndexOf;
11356
11383
  });
11357
- define("ember-metal/binding",
11384
+ enifed("ember-metal/binding",
11358
11385
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/observer","ember-metal/run_loop","ember-metal/path_cache","exports"],
11359
11386
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) {
11360
11387
  "use strict";
@@ -11847,7 +11874,7 @@ define("ember-metal/binding",
11847
11874
  __exports__.oneWay = oneWay;__exports__.Binding = Binding;
11848
11875
  __exports__.isGlobalPath = isGlobalPath;
11849
11876
  });
11850
- define("ember-metal/cache",
11877
+ enifed("ember-metal/cache",
11851
11878
  ["ember-metal/dictionary","exports"],
11852
11879
  function(__dependency1__, __exports__) {
11853
11880
  "use strict";
@@ -11907,7 +11934,7 @@ define("ember-metal/cache",
11907
11934
  }
11908
11935
  };
11909
11936
  });
11910
- define("ember-metal/chains",
11937
+ enifed("ember-metal/chains",
11911
11938
  ["ember-metal/core","ember-metal/property_get","ember-metal/utils","ember-metal/array","ember-metal/watch_key","exports"],
11912
11939
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
11913
11940
  "use strict";
@@ -12267,7 +12294,7 @@ define("ember-metal/chains",
12267
12294
  __exports__.finishChains = finishChains;__exports__.removeChainWatcher = removeChainWatcher;
12268
12295
  __exports__.ChainNode = ChainNode;
12269
12296
  });
12270
- define("ember-metal/computed",
12297
+ enifed("ember-metal/computed",
12271
12298
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/expand_properties","ember-metal/error","ember-metal/properties","ember-metal/property_events","ember-metal/dependent_keys","exports"],
12272
12299
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __exports__) {
12273
12300
  "use strict";
@@ -12876,7 +12903,7 @@ define("ember-metal/computed",
12876
12903
  __exports__.computed = computed;
12877
12904
  __exports__.cacheFor = cacheFor;
12878
12905
  });
12879
- define("ember-metal/computed_macros",
12906
+ enifed("ember-metal/computed_macros",
12880
12907
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/computed","ember-metal/is_empty","ember-metal/is_none","ember-metal/alias"],
12881
12908
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__) {
12882
12909
  "use strict";
@@ -13581,7 +13608,7 @@ define("ember-metal/computed_macros",
13581
13608
  });
13582
13609
  };
13583
13610
  });
13584
- define("ember-metal/core",
13611
+ enifed("ember-metal/core",
13585
13612
  ["exports"],
13586
13613
  function(__exports__) {
13587
13614
  "use strict";
@@ -13609,7 +13636,7 @@ define("ember-metal/core",
13609
13636
 
13610
13637
  @class Ember
13611
13638
  @static
13612
- @version 1.8.0-beta.5
13639
+ @version 1.8.0
13613
13640
  */
13614
13641
 
13615
13642
  if ('undefined' === typeof Ember) {
@@ -13636,10 +13663,10 @@ define("ember-metal/core",
13636
13663
  /**
13637
13664
  @property VERSION
13638
13665
  @type String
13639
- @default '1.8.0-beta.5'
13666
+ @default '1.8.0'
13640
13667
  @static
13641
13668
  */
13642
- Ember.VERSION = '1.8.0-beta.5';
13669
+ Ember.VERSION = '1.8.0';
13643
13670
 
13644
13671
  /**
13645
13672
  Standard environmental variables. You can define these in a global `EmberENV`
@@ -13796,7 +13823,7 @@ define("ember-metal/core",
13796
13823
 
13797
13824
  __exports__["default"] = Ember;
13798
13825
  });
13799
- define("ember-metal/dependent_keys",
13826
+ enifed("ember-metal/dependent_keys",
13800
13827
  ["ember-metal/platform","ember-metal/watching","exports"],
13801
13828
  function(__dependency1__, __dependency2__, __exports__) {
13802
13829
  "use strict";
@@ -13883,7 +13910,7 @@ define("ember-metal/dependent_keys",
13883
13910
 
13884
13911
  __exports__.removeDependentKeys = removeDependentKeys;
13885
13912
  });
13886
- define("ember-metal/deprecate_property",
13913
+ enifed("ember-metal/deprecate_property",
13887
13914
  ["ember-metal/core","ember-metal/platform","ember-metal/properties","ember-metal/property_get","ember-metal/property_set","exports"],
13888
13915
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
13889
13916
  "use strict";
@@ -13927,23 +13954,25 @@ define("ember-metal/deprecate_property",
13927
13954
 
13928
13955
  __exports__.deprecateProperty = deprecateProperty;
13929
13956
  });
13930
- define("ember-metal/dictionary",
13931
- ["exports"],
13932
- function(__exports__) {
13957
+ enifed("ember-metal/dictionary",
13958
+ ["ember-metal/platform","exports"],
13959
+ function(__dependency1__, __exports__) {
13933
13960
  "use strict";
13961
+ var create = __dependency1__.create;
13962
+
13934
13963
  // the delete is meant to hint at runtimes that this object should remain in
13935
13964
  // dictionary mode. This is clearly a runtime specific hack, but currently it
13936
13965
  // appears worthwile in some usecases. Please note, these deletes do increase
13937
13966
  // the cost of creation dramatically over a plain Object.create. And as this
13938
13967
  // only makes sense for long-lived dictionaries that aren't instantiated often.
13939
13968
  __exports__["default"] = function makeDictionary(parent) {
13940
- var dict = Object.create(parent);
13969
+ var dict = create(parent);
13941
13970
  dict['_dict'] = null;
13942
13971
  delete dict['_dict'];
13943
13972
  return dict;
13944
13973
  }
13945
13974
  });
13946
- define("ember-metal/enumerable_utils",
13975
+ enifed("ember-metal/enumerable_utils",
13947
13976
  ["ember-metal/array","exports"],
13948
13977
  function(__dependency1__, __exports__) {
13949
13978
  "use strict";
@@ -13975,7 +14004,7 @@ define("ember-metal/enumerable_utils",
13975
14004
  * @return {Array} An array of mapped values.
13976
14005
  */
13977
14006
  function map(obj, callback, thisArg) {
13978
- return obj.map ? obj.map.call(obj, callback, thisArg) : _map.call(obj, callback, thisArg);
14007
+ return obj.map ? obj.map(callback, thisArg) : _map.call(obj, callback, thisArg);
13979
14008
  }
13980
14009
 
13981
14010
  __exports__.map = map;/**
@@ -13989,7 +14018,7 @@ define("ember-metal/enumerable_utils",
13989
14018
  *
13990
14019
  */
13991
14020
  function forEach(obj, callback, thisArg) {
13992
- return obj.forEach ? obj.forEach.call(obj, callback, thisArg) : a_forEach.call(obj, callback, thisArg);
14021
+ return obj.forEach ? obj.forEach(callback, thisArg) : a_forEach.call(obj, callback, thisArg);
13993
14022
  }
13994
14023
 
13995
14024
  __exports__.forEach = forEach;/**
@@ -14005,7 +14034,7 @@ define("ember-metal/enumerable_utils",
14005
14034
  * @since 1.4.0
14006
14035
  */
14007
14036
  function filter(obj, callback, thisArg) {
14008
- return obj.filter ? obj.filter.call(obj, callback, thisArg) : _filter.call(obj, callback, thisArg);
14037
+ return obj.filter ? obj.filter(callback, thisArg) : _filter.call(obj, callback, thisArg);
14009
14038
  }
14010
14039
 
14011
14040
  __exports__.filter = filter;/**
@@ -14019,7 +14048,7 @@ define("ember-metal/enumerable_utils",
14019
14048
  *
14020
14049
  */
14021
14050
  function indexOf(obj, element, index) {
14022
- return obj.indexOf ? obj.indexOf.call(obj, element, index) : _indexOf.call(obj, element, index);
14051
+ return obj.indexOf ? obj.indexOf(element, index) : _indexOf.call(obj, element, index);
14023
14052
  }
14024
14053
 
14025
14054
  __exports__.indexOf = indexOf;/**
@@ -14183,7 +14212,7 @@ define("ember-metal/enumerable_utils",
14183
14212
  replace: replace
14184
14213
  };
14185
14214
  });
14186
- define("ember-metal/error",
14215
+ enifed("ember-metal/error",
14187
14216
  ["ember-metal/platform","exports"],
14188
14217
  function(__dependency1__, __exports__) {
14189
14218
  "use strict";
@@ -14230,7 +14259,7 @@ define("ember-metal/error",
14230
14259
 
14231
14260
  __exports__["default"] = EmberError;
14232
14261
  });
14233
- define("ember-metal/events",
14262
+ enifed("ember-metal/events",
14234
14263
  ["ember-metal/core","ember-metal/utils","ember-metal/platform","exports"],
14235
14264
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
14236
14265
  "use strict";
@@ -14647,7 +14676,7 @@ define("ember-metal/events",
14647
14676
 
14648
14677
  __exports__.on = on;__exports__.removeListener = removeListener;
14649
14678
  });
14650
- define("ember-metal/expand_properties",
14679
+ enifed("ember-metal/expand_properties",
14651
14680
  ["ember-metal/core","ember-metal/error","ember-metal/enumerable_utils","exports"],
14652
14681
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
14653
14682
  "use strict";
@@ -14746,7 +14775,7 @@ define("ember-metal/expand_properties",
14746
14775
  return all;
14747
14776
  }
14748
14777
  });
14749
- define("ember-metal/get_properties",
14778
+ enifed("ember-metal/get_properties",
14750
14779
  ["ember-metal/property_get","ember-metal/utils","exports"],
14751
14780
  function(__dependency1__, __dependency2__, __exports__) {
14752
14781
  "use strict";
@@ -14789,7 +14818,7 @@ define("ember-metal/get_properties",
14789
14818
  return ret;
14790
14819
  }
14791
14820
  });
14792
- define("ember-metal/instrumentation",
14821
+ enifed("ember-metal/instrumentation",
14793
14822
  ["ember-metal/core","ember-metal/utils","exports"],
14794
14823
  function(__dependency1__, __dependency2__, __exports__) {
14795
14824
  "use strict";
@@ -15015,7 +15044,7 @@ define("ember-metal/instrumentation",
15015
15044
 
15016
15045
  __exports__.reset = reset;
15017
15046
  });
15018
- define("ember-metal/is_blank",
15047
+ enifed("ember-metal/is_blank",
15019
15048
  ["ember-metal/core","ember-metal/is_empty","exports"],
15020
15049
  function(__dependency1__, __dependency2__, __exports__) {
15021
15050
  "use strict";
@@ -15050,7 +15079,7 @@ define("ember-metal/is_blank",
15050
15079
  return isEmpty(obj) || (typeof obj === 'string' && obj.match(/\S/) === null);
15051
15080
  }
15052
15081
  });
15053
- define("ember-metal/is_empty",
15082
+ enifed("ember-metal/is_empty",
15054
15083
  ["ember-metal/core","ember-metal/property_get","ember-metal/is_none","exports"],
15055
15084
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
15056
15085
  "use strict";
@@ -15063,7 +15092,7 @@ define("ember-metal/is_empty",
15063
15092
  Verifies that a value is `null` or an empty string, empty array,
15064
15093
  or empty function.
15065
15094
 
15066
- Constrains the rules on `Ember.isNone` by returning false for empty
15095
+ Constrains the rules on `Ember.isNone` by returning true for empty
15067
15096
  string and empty arrays.
15068
15097
 
15069
15098
  ```javascript
@@ -15082,7 +15111,36 @@ define("ember-metal/is_empty",
15082
15111
  @return {Boolean}
15083
15112
  */
15084
15113
  function isEmpty(obj) {
15085
- return isNone(obj) || (obj.length === 0 && typeof obj !== 'function') || (typeof obj === 'object' && get(obj, 'length') === 0);
15114
+ var none = isNone(obj);
15115
+ if (none) {
15116
+ return none;
15117
+ }
15118
+
15119
+ if (typeof obj.size === 'number') {
15120
+ return !obj.size;
15121
+ }
15122
+
15123
+ var objectType = typeof obj;
15124
+
15125
+ if (objectType === 'object') {
15126
+ var size = get(obj, 'size');
15127
+ if (typeof size === 'number') {
15128
+ return !size;
15129
+ }
15130
+ }
15131
+
15132
+ if (typeof obj.length === 'number' && objectType !== 'function') {
15133
+ return !obj.length;
15134
+ }
15135
+
15136
+ if (objectType === 'object') {
15137
+ var length = get(obj, 'length');
15138
+ if (typeof length === 'number') {
15139
+ return !length;
15140
+ }
15141
+ }
15142
+
15143
+ return false;
15086
15144
  }
15087
15145
 
15088
15146
  var empty = Ember.deprecateFunc("Ember.empty is deprecated. Please use Ember.isEmpty instead.", isEmpty);
@@ -15091,7 +15149,7 @@ define("ember-metal/is_empty",
15091
15149
  __exports__.isEmpty = isEmpty;
15092
15150
  __exports__.empty = empty;
15093
15151
  });
15094
- define("ember-metal/is_none",
15152
+ enifed("ember-metal/is_none",
15095
15153
  ["ember-metal/core","exports"],
15096
15154
  function(__dependency1__, __exports__) {
15097
15155
  "use strict";
@@ -15126,7 +15184,7 @@ define("ember-metal/is_none",
15126
15184
  __exports__["default"] = isNone;
15127
15185
  __exports__.isNone = isNone;
15128
15186
  });
15129
- define("ember-metal/is_present",
15187
+ enifed("ember-metal/is_present",
15130
15188
  ["ember-metal/is_blank","exports"],
15131
15189
  function(__dependency1__, __exports__) {
15132
15190
  "use strict";
@@ -15164,7 +15222,7 @@ define("ember-metal/is_present",
15164
15222
 
15165
15223
  __exports__["default"] = isPresent;
15166
15224
  });
15167
- define("ember-metal/keys",
15225
+ enifed("ember-metal/keys",
15168
15226
  ["ember-metal/platform","exports"],
15169
15227
  function(__dependency1__, __exports__) {
15170
15228
  "use strict";
@@ -15228,7 +15286,7 @@ define("ember-metal/keys",
15228
15286
 
15229
15287
  __exports__["default"] = keys;
15230
15288
  });
15231
- define("ember-metal/libraries",
15289
+ enifed("ember-metal/libraries",
15232
15290
  ["ember-metal/enumerable_utils","exports"],
15233
15291
  function(__dependency1__, __exports__) {
15234
15292
  "use strict";
@@ -15276,7 +15334,7 @@ define("ember-metal/libraries",
15276
15334
 
15277
15335
  __exports__["default"] = libraries;
15278
15336
  });
15279
- define("ember-metal/logger",
15337
+ enifed("ember-metal/logger",
15280
15338
  ["ember-metal/core","ember-metal/error","exports"],
15281
15339
  function(__dependency1__, __dependency2__, __exports__) {
15282
15340
  "use strict";
@@ -15424,7 +15482,7 @@ define("ember-metal/logger",
15424
15482
  assert: consoleMethod('assert') || assertPolyfill
15425
15483
  };
15426
15484
  });
15427
- define("ember-metal/map",
15485
+ enifed("ember-metal/map",
15428
15486
  ["ember-metal/utils","ember-metal/array","ember-metal/platform","ember-metal/deprecate_property","exports"],
15429
15487
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
15430
15488
  "use strict";
@@ -15464,7 +15522,7 @@ define("ember-metal/map",
15464
15522
  }
15465
15523
 
15466
15524
  function copyNull(obj) {
15467
- var output = Object.create(null);
15525
+ var output = create(null);
15468
15526
 
15469
15527
  for (var prop in obj) {
15470
15528
  // hasOwnPropery is not needed because obj is Object.create(null);
@@ -15522,7 +15580,7 @@ define("ember-metal/map",
15522
15580
  @method clear
15523
15581
  */
15524
15582
  clear: function() {
15525
- this.presenceSet = Object.create(null);
15583
+ this.presenceSet = create(null);
15526
15584
  this.list = [];
15527
15585
  this.size = 0;
15528
15586
  },
@@ -15686,7 +15744,7 @@ define("ember-metal/map",
15686
15744
  if (this instanceof this.constructor) {
15687
15745
  this.keys = OrderedSet.create();
15688
15746
  this.keys._silenceRemoveDeprecation = true;
15689
- this.values = Object.create(null);
15747
+ this.values = create(null);
15690
15748
  this.size = 0;
15691
15749
  } else {
15692
15750
  missingNew("OrderedSet");
@@ -15848,7 +15906,7 @@ define("ember-metal/map",
15848
15906
  */
15849
15907
  clear: function() {
15850
15908
  this.keys.clear();
15851
- this.values = Object.create(null);
15909
+ this.values = create(null);
15852
15910
  this.size = 0;
15853
15911
  },
15854
15912
 
@@ -15934,7 +15992,7 @@ define("ember-metal/map",
15934
15992
  __exports__.Map = Map;
15935
15993
  __exports__.MapWithDefault = MapWithDefault;
15936
15994
  });
15937
- define("ember-metal/merge",
15995
+ enifed("ember-metal/merge",
15938
15996
  ["ember-metal/keys","exports"],
15939
15997
  function(__dependency1__, __exports__) {
15940
15998
  "use strict";
@@ -15972,7 +16030,7 @@ define("ember-metal/merge",
15972
16030
  return original;
15973
16031
  }
15974
16032
  });
15975
- define("ember-metal/mixin",
16033
+ enifed("ember-metal/mixin",
15976
16034
  ["ember-metal/core","ember-metal/merge","ember-metal/array","ember-metal/platform","ember-metal/utils","ember-metal/expand_properties","ember-metal/properties","ember-metal/computed","ember-metal/binding","ember-metal/observer","ember-metal/events","exports"],
15977
16035
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __exports__) {
15978
16036
  "use strict";
@@ -15993,6 +16051,7 @@ define("ember-metal/mixin",
15993
16051
  var wrap = __dependency5__.wrap;
15994
16052
  var makeArray = __dependency5__.makeArray;
15995
16053
  var apply = __dependency5__.apply;
16054
+ var isArray = __dependency5__.isArray;
15996
16055
  var expandProperties = __dependency6__["default"];
15997
16056
  var Descriptor = __dependency7__.Descriptor;
15998
16057
  var defineProperty = __dependency7__.defineProperty;
@@ -16152,6 +16211,9 @@ define("ember-metal/mixin",
16152
16211
  function applyMergedProperties(obj, key, value, values) {
16153
16212
  var baseValue = values[key] || obj[key];
16154
16213
 
16214
+ Ember.assert("You passed in `" + JSON.stringify(value) + "` as the value for `" + key +
16215
+ "` but `" + key + "` cannot be an Array", !isArray(value));
16216
+
16155
16217
  if (!baseValue) { return value; }
16156
16218
 
16157
16219
  var newBase = merge({}, baseValue);
@@ -16813,7 +16875,7 @@ define("ember-metal/mixin",
16813
16875
  __exports__.beforeObserver = beforeObserver;__exports__.IS_BINDING = IS_BINDING;
16814
16876
  __exports__.Mixin = Mixin;
16815
16877
  });
16816
- define("ember-metal/observer",
16878
+ enifed("ember-metal/observer",
16817
16879
  ["ember-metal/watching","ember-metal/array","ember-metal/events","exports"],
16818
16880
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
16819
16881
  "use strict";
@@ -16932,7 +16994,7 @@ define("ember-metal/observer",
16932
16994
 
16933
16995
  __exports__.removeBeforeObserver = removeBeforeObserver;
16934
16996
  });
16935
- define("ember-metal/observer_set",
16997
+ enifed("ember-metal/observer_set",
16936
16998
  ["ember-metal/utils","ember-metal/events","exports"],
16937
16999
  function(__dependency1__, __dependency2__, __exports__) {
16938
17000
  "use strict";
@@ -17003,7 +17065,7 @@ define("ember-metal/observer_set",
17003
17065
  this.observers = [];
17004
17066
  };
17005
17067
  });
17006
- define("ember-metal/path_cache",
17068
+ enifed("ember-metal/path_cache",
17007
17069
  ["ember-metal/cache","exports"],
17008
17070
  function(__dependency1__, __exports__) {
17009
17071
  "use strict";
@@ -17043,109 +17105,49 @@ define("ember-metal/path_cache",
17043
17105
 
17044
17106
  __exports__.isPath = isPath;
17045
17107
  });
17046
- define("ember-metal/platform",
17047
- ["exports"],
17048
- function(__exports__) {
17108
+ enifed("ember-metal/platform",
17109
+ ["ember-metal/platform/define_property","ember-metal/platform/define_properties","ember-metal/platform/create","exports"],
17110
+ function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
17049
17111
  "use strict";
17050
- /*globals Node */
17112
+ var hasES5CompliantDefineProperty = __dependency1__.hasES5CompliantDefineProperty;
17113
+ var defineProperty = __dependency1__.defineProperty;
17114
+ var defineProperties = __dependency2__["default"];
17115
+ var create = __dependency3__["default"];
17051
17116
 
17052
17117
  /**
17053
17118
  @module ember-metal
17054
17119
  */
17055
- var defineProperty = (function checkCompliance(defineProperty) {
17056
- if (!defineProperty) return;
17057
- try {
17058
- var a = 5;
17059
- var obj = {};
17060
- defineProperty(obj, 'a', {
17061
- configurable: true,
17062
- enumerable: true,
17063
- get: function () {
17064
- return a;
17065
- },
17066
- set: function (v) {
17067
- a = v;
17068
- }
17069
- });
17070
- if (obj.a !== 5) return;
17071
- obj.a = 10;
17072
- if (a !== 10) return;
17073
17120
 
17074
- // check non-enumerability
17075
- defineProperty(obj, 'a', {
17076
- configurable: true,
17077
- enumerable: false,
17078
- writable: true,
17079
- value: true
17080
- });
17081
- for (var key in obj) {
17082
- if (key === 'a') return;
17083
- }
17084
-
17085
- // Detects a bug in Android <3.2 where you cannot redefine a property using
17086
- // Object.defineProperty once accessors have already been set.
17087
- if (obj.a !== true) return;
17088
-
17089
- // defineProperty is compliant
17090
- return defineProperty;
17091
- } catch (e) {
17092
- // IE8 defines Object.defineProperty but calling it on an Object throws
17093
- return;
17094
- }
17095
- })(Object.defineProperty);
17096
-
17097
- var hasES5CompliantDefineProperty = !!defineProperty;
17098
-
17099
- if (hasES5CompliantDefineProperty && typeof document !== 'undefined') {
17100
- // This is for Safari 5.0, which supports Object.defineProperty, but not
17101
- // on DOM nodes.
17102
- var canDefinePropertyOnDOM = (function() {
17103
- try {
17104
- defineProperty(document.createElement('div'), 'definePropertyOnDOM', {});
17105
- return true;
17106
- } catch(e) { }
17107
-
17108
- return false;
17109
- })();
17110
-
17111
- if (!canDefinePropertyOnDOM) {
17112
- defineProperty = function(obj, keyName, desc) {
17113
- var isNode;
17121
+ var hasPropertyAccessors = hasES5CompliantDefineProperty;
17122
+ var canDefineNonEnumerableProperties = hasES5CompliantDefineProperty;
17114
17123
 
17115
- if (typeof Node === "object") {
17116
- isNode = obj instanceof Node;
17117
- } else {
17118
- isNode = typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string";
17119
- }
17124
+ /**
17125
+ Platform specific methods and feature detectors needed by the framework.
17120
17126
 
17121
- if (isNode) {
17122
- // TODO: Should we have a warning here?
17123
- return (obj[keyName] = desc.value);
17124
- } else {
17125
- return Object.defineProperty(obj, keyName, desc);
17126
- }
17127
- };
17128
- }
17129
- }
17127
+ @class platform
17128
+ @namespace Ember
17129
+ @static
17130
+ */
17130
17131
 
17131
- if (!hasES5CompliantDefineProperty) {
17132
- defineProperty = function defineProperty(obj, keyName, desc) {
17133
- if (!desc.get) { obj[keyName] = desc.value; }
17134
- };
17135
- }
17132
+ __exports__.create = create;
17133
+ __exports__.defineProperty = defineProperty;
17134
+ __exports__.defineProperties = defineProperties;
17135
+ __exports__.hasPropertyAccessors = hasPropertyAccessors;
17136
+ __exports__.canDefineNonEnumerableProperties = canDefineNonEnumerableProperties;
17137
+ });
17138
+ enifed("ember-metal/platform/create",
17139
+ ["exports"],
17140
+ function(__exports__) {
17141
+ // Remove "use strict"; from transpiled module until
17142
+ // https://bugs.webkit.org/show_bug.cgi?id=138038 is fixed
17143
+ //
17144
+ // REMOVE_USE_STRICT: true
17136
17145
 
17137
- // ES5 15.2.3.7
17138
- // http://es5.github.com/#x15.2.3.7
17139
- if (!Object.defineProperties) {
17140
- Object.defineProperties = function defineProperties(object, properties) {
17141
- for (var property in properties) {
17142
- if (properties.hasOwnProperty(property) && property !== "__proto__") {
17143
- defineProperty(object, property, properties[property]);
17144
- }
17145
- }
17146
- return object;
17147
- };
17148
- }
17146
+ /**
17147
+ @class platform
17148
+ @namespace Ember
17149
+ @static
17150
+ */
17149
17151
 
17150
17152
  /**
17151
17153
  Identical to `Object.create()`. Implements if not available natively.
@@ -17233,23 +17235,51 @@ define("ember-metal/platform",
17233
17235
  create = Object.create;
17234
17236
  }
17235
17237
 
17236
- var hasPropertyAccessors = hasES5CompliantDefineProperty;
17237
- var canDefineNonEnumerableProperties = hasES5CompliantDefineProperty;
17238
+ __exports__["default"] = create;
17239
+ });
17240
+ enifed("ember-metal/platform/define_properties",
17241
+ ["ember-metal/platform/define_property","exports"],
17242
+ function(__dependency1__, __exports__) {
17243
+ "use strict";
17244
+ var defineProperty = __dependency1__.defineProperty;
17245
+
17246
+ var defineProperties = Object.defineProperties;
17247
+
17248
+ // ES5 15.2.3.7
17249
+ // http://es5.github.com/#x15.2.3.7
17250
+ if (!defineProperties) {
17251
+ defineProperties = function defineProperties(object, properties) {
17252
+ for (var property in properties) {
17253
+ if (properties.hasOwnProperty(property) && property !== "__proto__") {
17254
+ defineProperty(object, property, properties[property]);
17255
+ }
17256
+ }
17257
+ return object;
17258
+ };
17259
+
17260
+ Object.defineProperties = defineProperties;
17261
+ }
17262
+
17263
+ __exports__["default"] = defineProperties;
17264
+ });
17265
+ enifed("ember-metal/platform/define_property",
17266
+ ["exports"],
17267
+ function(__exports__) {
17268
+ "use strict";
17269
+ /*globals Node */
17238
17270
 
17239
17271
  /**
17240
17272
  @class platform
17241
17273
  @namespace Ember
17274
+ @static
17242
17275
  */
17243
17276
 
17244
17277
  /**
17245
- Platform specific methods and feature detectors needed by the framework.
17278
+ Set to true if the platform supports native getters and setters.
17246
17279
 
17247
- @class platform
17248
- @namespace Ember
17249
- @static
17280
+ @property hasPropertyAccessors
17281
+ @final
17250
17282
  */
17251
- // TODO remove this
17252
- var platform = {};
17253
17283
 
17254
17284
  /**
17255
17285
  Identical to `Object.defineProperty()`. Implements as much functionality
@@ -17261,23 +17291,92 @@ define("ember-metal/platform",
17261
17291
  @param {Object} desc descriptor hash
17262
17292
  @return {void}
17263
17293
  */
17264
- platform.defineProperty = defineProperty;
17294
+ var defineProperty = (function checkCompliance(defineProperty) {
17295
+ if (!defineProperty) return;
17296
+ try {
17297
+ var a = 5;
17298
+ var obj = {};
17299
+ defineProperty(obj, 'a', {
17300
+ configurable: true,
17301
+ enumerable: true,
17302
+ get: function () {
17303
+ return a;
17304
+ },
17305
+ set: function (v) {
17306
+ a = v;
17307
+ }
17308
+ });
17309
+ if (obj.a !== 5) return;
17310
+ obj.a = 10;
17311
+ if (a !== 10) return;
17265
17312
 
17266
- /**
17267
- Set to true if the platform supports native getters and setters.
17313
+ // check non-enumerability
17314
+ defineProperty(obj, 'a', {
17315
+ configurable: true,
17316
+ enumerable: false,
17317
+ writable: true,
17318
+ value: true
17319
+ });
17320
+ for (var key in obj) {
17321
+ if (key === 'a') return;
17322
+ }
17268
17323
 
17269
- @property hasPropertyAccessors
17270
- @final
17271
- */
17272
- platform.hasPropertyAccessors = hasPropertyAccessors;
17324
+ // Detects a bug in Android <3.2 where you cannot redefine a property using
17325
+ // Object.defineProperty once accessors have already been set.
17326
+ if (obj.a !== true) return;
17273
17327
 
17274
- __exports__.create = create;
17328
+ // defineProperty is compliant
17329
+ return defineProperty;
17330
+ } catch (e) {
17331
+ // IE8 defines Object.defineProperty but calling it on an Object throws
17332
+ return;
17333
+ }
17334
+ })(Object.defineProperty);
17335
+
17336
+ var hasES5CompliantDefineProperty = !!defineProperty;
17337
+
17338
+ if (hasES5CompliantDefineProperty && typeof document !== 'undefined') {
17339
+ // This is for Safari 5.0, which supports Object.defineProperty, but not
17340
+ // on DOM nodes.
17341
+ var canDefinePropertyOnDOM = (function() {
17342
+ try {
17343
+ defineProperty(document.createElement('div'), 'definePropertyOnDOM', {});
17344
+ return true;
17345
+ } catch(e) { }
17346
+
17347
+ return false;
17348
+ })();
17349
+
17350
+ if (!canDefinePropertyOnDOM) {
17351
+ defineProperty = function(obj, keyName, desc) {
17352
+ var isNode;
17353
+
17354
+ if (typeof Node === "object") {
17355
+ isNode = obj instanceof Node;
17356
+ } else {
17357
+ isNode = typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string";
17358
+ }
17359
+
17360
+ if (isNode) {
17361
+ // TODO: Should we have a warning here?
17362
+ return (obj[keyName] = desc.value);
17363
+ } else {
17364
+ return Object.defineProperty(obj, keyName, desc);
17365
+ }
17366
+ };
17367
+ }
17368
+ }
17369
+
17370
+ if (!hasES5CompliantDefineProperty) {
17371
+ defineProperty = function defineProperty(obj, keyName, desc) {
17372
+ if (!desc.get) { obj[keyName] = desc.value; }
17373
+ };
17374
+ }
17375
+
17376
+ __exports__.hasES5CompliantDefineProperty = hasES5CompliantDefineProperty;
17275
17377
  __exports__.defineProperty = defineProperty;
17276
- __exports__.hasPropertyAccessors = hasPropertyAccessors;
17277
- __exports__.canDefineNonEnumerableProperties = canDefineNonEnumerableProperties;
17278
- __exports__.platform = platform;
17279
17378
  });
17280
- define("ember-metal/properties",
17379
+ enifed("ember-metal/properties",
17281
17380
  ["ember-metal/core","ember-metal/utils","ember-metal/platform","ember-metal/property_events","exports"],
17282
17381
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
17283
17382
  "use strict";
@@ -17311,8 +17410,10 @@ define("ember-metal/properties",
17311
17410
  // DEFINING PROPERTIES API
17312
17411
  //
17313
17412
 
17314
- function MANDATORY_SETTER_FUNCTION(value) {
17315
- Ember.assert("You must use Ember.set() to access this property (of " + this + ")", false);
17413
+ function MANDATORY_SETTER_FUNCTION(name) {
17414
+ return function SETTER_FUNCTION(value) {
17415
+ Ember.assert("You must use Ember.set() to set the `" + name + "` property (of " + this + ") to `" + value + "`.", false);
17416
+ };
17316
17417
  }
17317
17418
 
17318
17419
  __exports__.MANDATORY_SETTER_FUNCTION = MANDATORY_SETTER_FUNCTION;function DEFAULT_GETTER_FUNCTION(name) {
@@ -17408,7 +17509,7 @@ define("ember-metal/properties",
17408
17509
  objectDefineProperty(obj, keyName, {
17409
17510
  configurable: true,
17410
17511
  enumerable: true,
17411
- set: MANDATORY_SETTER_FUNCTION,
17512
+ set: MANDATORY_SETTER_FUNCTION(keyName),
17412
17513
  get: DEFAULT_GETTER_FUNCTION(keyName)
17413
17514
  });
17414
17515
  } else {
@@ -17434,7 +17535,7 @@ define("ember-metal/properties",
17434
17535
  }
17435
17536
  __exports__.defineProperty = defineProperty;
17436
17537
  });
17437
- define("ember-metal/property_events",
17538
+ enifed("ember-metal/property_events",
17438
17539
  ["ember-metal/utils","ember-metal/events","ember-metal/observer_set","exports"],
17439
17540
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
17440
17541
  "use strict";
@@ -17693,7 +17794,7 @@ define("ember-metal/property_events",
17693
17794
  __exports__.endPropertyChanges = endPropertyChanges;
17694
17795
  __exports__.changeProperties = changeProperties;
17695
17796
  });
17696
- define("ember-metal/property_get",
17797
+ enifed("ember-metal/property_get",
17697
17798
  ["ember-metal/core","ember-metal/error","ember-metal/path_cache","ember-metal/platform","exports"],
17698
17799
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
17699
17800
  "use strict";
@@ -17877,7 +17978,7 @@ define("ember-metal/property_get",
17877
17978
  __exports__.normalizeTuple = normalizeTuple;
17878
17979
  __exports__._getPath = _getPath;
17879
17980
  });
17880
- define("ember-metal/property_set",
17981
+ enifed("ember-metal/property_set",
17881
17982
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_events","ember-metal/properties","ember-metal/error","ember-metal/path_cache","ember-metal/platform","exports"],
17882
17983
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) {
17883
17984
  "use strict";
@@ -18028,7 +18129,7 @@ define("ember-metal/property_set",
18028
18129
 
18029
18130
  __exports__.trySet = trySet;__exports__.set = set;
18030
18131
  });
18031
- define("ember-metal/run_loop",
18132
+ enifed("ember-metal/run_loop",
18032
18133
  ["ember-metal/core","ember-metal/utils","ember-metal/array","ember-metal/property_events","backburner","exports"],
18033
18134
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
18034
18135
  "use strict";
@@ -18097,7 +18198,7 @@ define("ember-metal/run_loop",
18097
18198
  */
18098
18199
  __exports__["default"] = run;
18099
18200
  function run() {
18100
- return apply(backburner, backburner.run, arguments);
18201
+ return backburner.run.apply(backburner, arguments);
18101
18202
  }
18102
18203
 
18103
18204
  /**
@@ -18139,12 +18240,12 @@ define("ember-metal/run_loop",
18139
18240
  */
18140
18241
  run.join = function(target, method /* args */) {
18141
18242
  if (!run.currentRunLoop) {
18142
- return apply(Ember, run, arguments);
18243
+ return Ember.run.apply(Ember, arguments);
18143
18244
  }
18144
18245
 
18145
18246
  var args = slice.call(arguments);
18146
18247
  args.unshift('actions');
18147
- apply(run, run.schedule, args);
18248
+ run.schedule.apply(run, args);
18148
18249
  };
18149
18250
 
18150
18251
  /**
@@ -18191,7 +18292,7 @@ define("ember-metal/run_loop",
18191
18292
  run.bind = function(target, method /* args*/) {
18192
18293
  var args = slice.call(arguments);
18193
18294
  return function() {
18194
- return apply(run, run.join, args.concat(slice.call(arguments)));
18295
+ return run.join.apply(run, args.concat(slice.call(arguments)));
18195
18296
  };
18196
18297
  };
18197
18298
 
@@ -18285,7 +18386,7 @@ define("ember-metal/run_loop",
18285
18386
  */
18286
18387
  run.schedule = function(queue, target, method) {
18287
18388
  checkAutoRun();
18288
- apply(backburner, backburner.schedule, arguments);
18389
+ backburner.schedule.apply(backburner, arguments);
18289
18390
  };
18290
18391
 
18291
18392
  // Used by global test teardown
@@ -18345,8 +18446,8 @@ define("ember-metal/run_loop",
18345
18446
  @param {Number} wait Number of milliseconds to wait.
18346
18447
  @return {Object} Timer information for use in cancelling, see `run.cancel`.
18347
18448
  */
18348
- run.later = function(target, method) {
18349
- return apply(backburner, backburner.later, arguments);
18449
+ run.later = function(/*target, method*/) {
18450
+ return backburner.later.apply(backburner, arguments);
18350
18451
  };
18351
18452
 
18352
18453
  /**
@@ -18412,9 +18513,9 @@ define("ember-metal/run_loop",
18412
18513
  @param {Object} [args*] Optional arguments to pass to the timeout.
18413
18514
  @return {Object} Timer information for use in cancelling, see `run.cancel`.
18414
18515
  */
18415
- run.scheduleOnce = function(queue, target, method) {
18516
+ run.scheduleOnce = function(/*queue, target, method*/) {
18416
18517
  checkAutoRun();
18417
- return apply(backburner, backburner.scheduleOnce, arguments);
18518
+ return backburner.scheduleOnce.apply(backburner, arguments);
18418
18519
  };
18419
18520
 
18420
18521
  /**
@@ -18593,7 +18694,7 @@ define("ember-metal/run_loop",
18593
18694
  @return {Array} Timer information for use in cancelling, see `run.cancel`.
18594
18695
  */
18595
18696
  run.debounce = function() {
18596
- return apply(backburner, backburner.debounce, arguments);
18697
+ return backburner.debounce.apply(backburner, arguments);
18597
18698
  };
18598
18699
 
18599
18700
  /**
@@ -18632,7 +18733,7 @@ define("ember-metal/run_loop",
18632
18733
  @return {Array} Timer information for use in cancelling, see `run.cancel`.
18633
18734
  */
18634
18735
  run.throttle = function() {
18635
- return apply(backburner, backburner.throttle, arguments);
18736
+ return backburner.throttle.apply(backburner, arguments);
18636
18737
  };
18637
18738
 
18638
18739
  // Make sure it's not an autorun during testing
@@ -18658,7 +18759,7 @@ define("ember-metal/run_loop",
18658
18759
  }
18659
18760
  };
18660
18761
  });
18661
- define("ember-metal/set_properties",
18762
+ enifed("ember-metal/set_properties",
18662
18763
  ["ember-metal/property_events","ember-metal/property_set","ember-metal/keys","exports"],
18663
18764
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
18664
18765
  "use strict";
@@ -18682,25 +18783,26 @@ define("ember-metal/set_properties",
18682
18783
  ```
18683
18784
 
18684
18785
  @method setProperties
18685
- @param self
18686
- @param {Object} hash
18687
- @return self
18786
+ @param obj
18787
+ @param {Object} properties
18788
+ @return obj
18688
18789
  */
18689
- __exports__["default"] = function setProperties(self, hash) {
18790
+ __exports__["default"] = function setProperties(obj, properties) {
18791
+ if (!properties || typeof properties !== "object") { return obj; }
18690
18792
  changeProperties(function() {
18691
- var props = keys(hash);
18692
- var prop;
18793
+ var props = keys(properties);
18794
+ var propertyName;
18693
18795
 
18694
18796
  for (var i = 0, l = props.length; i < l; i++) {
18695
- prop = props[i];
18797
+ propertyName = props[i];
18696
18798
 
18697
- set(self, prop, hash[prop]);
18799
+ set(obj, propertyName, properties[propertyName]);
18698
18800
  }
18699
18801
  });
18700
- return self;
18802
+ return obj;
18701
18803
  }
18702
18804
  });
18703
- define("ember-metal/utils",
18805
+ enifed("ember-metal/utils",
18704
18806
  ["ember-metal/core","ember-metal/platform","ember-metal/array","exports"],
18705
18807
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
18706
18808
  "use strict";
@@ -19574,7 +19676,7 @@ define("ember-metal/utils",
19574
19676
  __exports__.canInvoke = canInvoke;
19575
19677
  __exports__.tryFinally = tryFinally;
19576
19678
  });
19577
- define("ember-metal/watch_key",
19679
+ enifed("ember-metal/watch_key",
19578
19680
  ["ember-metal/core","ember-metal/utils","ember-metal/platform","ember-metal/properties","exports"],
19579
19681
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
19580
19682
  "use strict";
@@ -19625,7 +19727,7 @@ define("ember-metal/watch_key",
19625
19727
  o_defineProperty(obj, keyName, {
19626
19728
  configurable: true,
19627
19729
  enumerable: obj.propertyIsEnumerable(keyName),
19628
- set: MANDATORY_SETTER_FUNCTION,
19730
+ set: MANDATORY_SETTER_FUNCTION(keyName),
19629
19731
  get: DEFAULT_GETTER_FUNCTION(keyName)
19630
19732
  });
19631
19733
  }
@@ -19671,7 +19773,7 @@ define("ember-metal/watch_key",
19671
19773
 
19672
19774
  __exports__.unwatchKey = unwatchKey;
19673
19775
  });
19674
- define("ember-metal/watch_path",
19776
+ enifed("ember-metal/watch_path",
19675
19777
  ["ember-metal/utils","ember-metal/chains","exports"],
19676
19778
  function(__dependency1__, __dependency2__, __exports__) {
19677
19779
  "use strict";
@@ -19724,7 +19826,7 @@ define("ember-metal/watch_path",
19724
19826
 
19725
19827
  __exports__.unwatchPath = unwatchPath;
19726
19828
  });
19727
- define("ember-metal/watching",
19829
+ enifed("ember-metal/watching",
19728
19830
  ["ember-metal/utils","ember-metal/chains","ember-metal/watch_key","ember-metal/watch_path","ember-metal/path_cache","exports"],
19729
19831
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
19730
19832
  "use strict";
@@ -19859,7 +19961,7 @@ define("ember-metal/watching",
19859
19961
 
19860
19962
  __exports__.destroy = destroy;
19861
19963
  });
19862
- define("ember-routing-handlebars",
19964
+ enifed("ember-routing-handlebars",
19863
19965
  ["ember-metal/core","ember-handlebars","ember-routing/system/router","ember-routing-handlebars/helpers/shared","ember-routing-handlebars/helpers/link_to","ember-routing-handlebars/helpers/outlet","ember-routing-handlebars/helpers/render","ember-routing-handlebars/helpers/action","exports"],
19864
19966
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
19865
19967
  "use strict";
@@ -19907,7 +20009,7 @@ define("ember-routing-handlebars",
19907
20009
 
19908
20010
  __exports__["default"] = Ember;
19909
20011
  });
19910
- define("ember-routing-handlebars/helpers/action",
20012
+ enifed("ember-routing-handlebars/helpers/action",
19911
20013
  ["ember-metal/core","ember-metal/property_get","ember-metal/array","ember-metal/utils","ember-metal/run_loop","ember-views/system/utils","ember-views/system/action_manager","ember-routing/system/router","ember-handlebars","ember-handlebars/ext","ember-handlebars/helpers/view","ember-routing-handlebars/helpers/shared","exports"],
19912
20014
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) {
19913
20015
  "use strict";
@@ -20250,7 +20352,7 @@ define("ember-routing-handlebars/helpers/action",
20250
20352
 
20251
20353
  __exports__.actionHelper = actionHelper;
20252
20354
  });
20253
- define("ember-routing-handlebars/helpers/link_to",
20355
+ enifed("ember-routing-handlebars/helpers/link_to",
20254
20356
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/merge","ember-metal/run_loop","ember-metal/computed","ember-runtime/system/lazy_load","ember-runtime/system/string","ember-runtime/system/object","ember-metal/keys","ember-views/system/utils","ember-views/views/component","ember-handlebars","ember-handlebars/helpers/view","ember-routing/system/router","ember-routing-handlebars/helpers/shared","exports"],
20255
20357
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __exports__) {
20256
20358
  "use strict";
@@ -21244,7 +21346,7 @@ define("ember-routing-handlebars/helpers/link_to",
21244
21346
  __exports__.deprecatedLinkToHelper = deprecatedLinkToHelper;
21245
21347
  __exports__.linkToHelper = linkToHelper;
21246
21348
  });
21247
- define("ember-routing-handlebars/helpers/outlet",
21349
+ enifed("ember-routing-handlebars/helpers/outlet",
21248
21350
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-runtime/system/lazy_load","ember-views/views/container_view","ember-handlebars/views/metamorph_view","ember-handlebars/helpers/view","exports"],
21249
21351
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) {
21250
21352
  "use strict";
@@ -21372,7 +21474,7 @@ define("ember-routing-handlebars/helpers/outlet",
21372
21474
 
21373
21475
  __exports__.outletHelper = outletHelper;
21374
21476
  });
21375
- define("ember-routing-handlebars/helpers/render",
21477
+ enifed("ember-routing-handlebars/helpers/render",
21376
21478
  ["ember-metal/core","ember-metal/error","ember-metal/property_get","ember-metal/property_set","ember-runtime/system/string","ember-routing/system/generate_controller","ember-handlebars/ext","ember-handlebars/helpers/view","exports"],
21377
21479
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
21378
21480
  "use strict";
@@ -21551,7 +21653,7 @@ define("ember-routing-handlebars/helpers/render",
21551
21653
  ViewHelper.instanceHelper(this, view, options);
21552
21654
  }
21553
21655
  });
21554
- define("ember-routing-handlebars/helpers/shared",
21656
+ enifed("ember-routing-handlebars/helpers/shared",
21555
21657
  ["ember-metal/property_get","ember-metal/array","ember-runtime/mixins/controller","ember-handlebars/ext","ember-metal/utils","exports"],
21556
21658
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
21557
21659
  "use strict";
@@ -21644,7 +21746,7 @@ define("ember-routing-handlebars/helpers/shared",
21644
21746
 
21645
21747
  __exports__.resolvePaths = resolvePaths;
21646
21748
  });
21647
- define("ember-routing",
21749
+ enifed("ember-routing",
21648
21750
  ["ember-handlebars","ember-metal/core","ember-routing/ext/run_loop","ember-routing/ext/controller","ember-routing/ext/view","ember-routing/location/api","ember-routing/location/none_location","ember-routing/location/hash_location","ember-routing/location/history_location","ember-routing/location/auto_location","ember-routing/system/generate_controller","ember-routing/system/controller_for","ember-routing/system/dsl","ember-routing/system/router","ember-routing/system/route","exports"],
21649
21751
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __exports__) {
21650
21752
  "use strict";
@@ -21689,7 +21791,7 @@ define("ember-routing",
21689
21791
 
21690
21792
  __exports__["default"] = Ember;
21691
21793
  });
21692
- define("ember-routing/ext/controller",
21794
+ enifed("ember-routing/ext/controller",
21693
21795
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/computed","ember-metal/utils","ember-metal/merge","ember-metal/enumerable_utils","ember-runtime/mixins/controller","exports"],
21694
21796
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
21695
21797
  "use strict";
@@ -22030,7 +22132,7 @@ define("ember-routing/ext/controller",
22030
22132
 
22031
22133
  __exports__["default"] = ControllerMixin;
22032
22134
  });
22033
- define("ember-routing/ext/run_loop",
22135
+ enifed("ember-routing/ext/run_loop",
22034
22136
  ["ember-metal/run_loop"],
22035
22137
  function(__dependency1__) {
22036
22138
  "use strict";
@@ -22049,7 +22151,7 @@ define("ember-routing/ext/run_loop",
22049
22151
  var queues = run.queues;
22050
22152
  run._addQueue('routerTransitions', 'actions');
22051
22153
  });
22052
- define("ember-routing/ext/view",
22154
+ enifed("ember-routing/ext/view",
22053
22155
  ["ember-metal/property_get","ember-metal/property_set","ember-metal/run_loop","ember-views/views/view","exports"],
22054
22156
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
22055
22157
  "use strict";
@@ -22206,7 +22308,7 @@ define("ember-routing/ext/view",
22206
22308
 
22207
22309
  __exports__["default"] = EmberView;
22208
22310
  });
22209
- define("ember-routing/location/api",
22311
+ enifed("ember-routing/location/api",
22210
22312
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","exports"],
22211
22313
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
22212
22314
  "use strict";
@@ -22418,7 +22520,7 @@ define("ember-routing/location/api",
22418
22520
  }
22419
22521
  };
22420
22522
  });
22421
- define("ember-routing/location/auto_location",
22523
+ enifed("ember-routing/location/auto_location",
22422
22524
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-routing/location/api","ember-routing/location/history_location","ember-routing/location/hash_location","ember-routing/location/none_location","exports"],
22423
22525
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) {
22424
22526
  "use strict";
@@ -22812,18 +22914,18 @@ define("ember-routing/location/auto_location",
22812
22914
  }
22813
22915
  };
22814
22916
  });
22815
- define("ember-routing/location/hash_location",
22816
- ["ember-metal/property_get","ember-metal/property_set","ember-metal/run_loop","ember-metal/utils","ember-runtime/system/object","ember-routing/location/api","ember-views/system/jquery","exports"],
22917
+ enifed("ember-routing/location/hash_location",
22918
+ ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/run_loop","ember-metal/utils","ember-runtime/system/object","ember-routing/location/api","exports"],
22817
22919
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) {
22818
22920
  "use strict";
22819
- var get = __dependency1__.get;
22820
- var set = __dependency2__.set;
22821
- var run = __dependency3__["default"];
22822
- var guidFor = __dependency4__.guidFor;
22921
+ var Ember = __dependency1__["default"];
22922
+ var get = __dependency2__.get;
22923
+ var set = __dependency3__.set;
22924
+ var run = __dependency4__["default"];
22925
+ var guidFor = __dependency5__.guidFor;
22823
22926
 
22824
- var EmberObject = __dependency5__["default"];
22825
- var EmberLocation = __dependency6__["default"];
22826
- var jQuery = __dependency7__["default"];
22927
+ var EmberObject = __dependency6__["default"];
22928
+ var EmberLocation = __dependency7__["default"];
22827
22929
 
22828
22930
  /**
22829
22931
  @module ember
@@ -22863,7 +22965,9 @@ define("ember-routing/location/hash_location",
22863
22965
  @method getURL
22864
22966
  */
22865
22967
  getURL: function() {
22866
- return this.getHash().substr(1);
22968
+ var path = this.getHash().substr(1);
22969
+ Ember.deprecate('location.hash value is ambiguous. Support for this will be removed soon. When using location: "hash|auto" your hash paths MUST begin with a forward slash. e.g. #/' + path + ' NOT #' + path, path.length === 0 || path.charAt(0) === '/');
22970
+ return path;
22867
22971
  },
22868
22972
 
22869
22973
  /**
@@ -22906,7 +23010,7 @@ define("ember-routing/location/hash_location",
22906
23010
  var self = this;
22907
23011
  var guid = guidFor(this);
22908
23012
 
22909
- jQuery(window).on('hashchange.ember-location-'+guid, function() {
23013
+ Ember.$(window).on('hashchange.ember-location-'+guid, function() {
22910
23014
  run(function() {
22911
23015
  var path = self.getURL();
22912
23016
  if (get(self, 'lastSetURL') === path) { return; }
@@ -22942,11 +23046,11 @@ define("ember-routing/location/hash_location",
22942
23046
  willDestroy: function() {
22943
23047
  var guid = guidFor(this);
22944
23048
 
22945
- jQuery(window).off('hashchange.ember-location-'+guid);
23049
+ Ember.$(window).off('hashchange.ember-location-'+guid);
22946
23050
  }
22947
23051
  });
22948
23052
  });
22949
- define("ember-routing/location/history_location",
23053
+ enifed("ember-routing/location/history_location",
22950
23054
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-runtime/system/object","ember-views/system/jquery","exports"],
22951
23055
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) {
22952
23056
  "use strict";
@@ -23172,7 +23276,7 @@ define("ember-routing/location/history_location",
23172
23276
  }
23173
23277
  });
23174
23278
  });
23175
- define("ember-routing/location/none_location",
23279
+ enifed("ember-routing/location/none_location",
23176
23280
  ["ember-metal/property_get","ember-metal/property_set","ember-runtime/system/object","exports"],
23177
23281
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
23178
23282
  "use strict";
@@ -23267,7 +23371,7 @@ define("ember-routing/location/none_location",
23267
23371
  }
23268
23372
  });
23269
23373
  });
23270
- define("ember-routing/system/cache",
23374
+ enifed("ember-routing/system/cache",
23271
23375
  ["ember-runtime/system/object","exports"],
23272
23376
  function(__dependency1__, __exports__) {
23273
23377
  "use strict";
@@ -23302,7 +23406,7 @@ define("ember-routing/system/cache",
23302
23406
  cache: null
23303
23407
  });
23304
23408
  });
23305
- define("ember-routing/system/controller_for",
23409
+ enifed("ember-routing/system/controller_for",
23306
23410
  ["exports"],
23307
23411
  function(__exports__) {
23308
23412
  "use strict";
@@ -23323,7 +23427,7 @@ define("ember-routing/system/controller_for",
23323
23427
  return container.lookup('controller:' + controllerName, lookupOptions);
23324
23428
  }
23325
23429
  });
23326
- define("ember-routing/system/dsl",
23430
+ enifed("ember-routing/system/dsl",
23327
23431
  ["ember-metal/core","exports"],
23328
23432
  function(__dependency1__, __exports__) {
23329
23433
  "use strict";
@@ -23441,7 +23545,7 @@ define("ember-routing/system/dsl",
23441
23545
  return dsl;
23442
23546
  };
23443
23547
  });
23444
- define("ember-routing/system/generate_controller",
23548
+ enifed("ember-routing/system/generate_controller",
23445
23549
  ["ember-metal/core","ember-metal/property_get","ember-metal/utils","exports"],
23446
23550
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
23447
23551
  "use strict";
@@ -23523,7 +23627,7 @@ define("ember-routing/system/generate_controller",
23523
23627
  return instance;
23524
23628
  }
23525
23629
  });
23526
- define("ember-routing/system/route",
23630
+ enifed("ember-routing/system/route",
23527
23631
  ["ember-metal/core","ember-metal/error","ember-metal/property_get","ember-metal/property_set","ember-metal/get_properties","ember-metal/enumerable_utils","ember-metal/is_none","ember-metal/computed","ember-metal/merge","ember-metal/utils","ember-metal/run_loop","ember-metal/keys","ember-runtime/copy","ember-runtime/system/string","ember-runtime/system/object","ember-runtime/mixins/action_handler","ember-routing/system/generate_controller","ember-routing-handlebars/helpers/shared","exports"],
23528
23632
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __exports__) {
23529
23633
  "use strict";
@@ -25522,9 +25626,9 @@ define("ember-routing/system/route",
25522
25626
 
25523
25627
  __exports__["default"] = Route;
25524
25628
  });
25525
- define("ember-routing/system/router",
25526
- ["ember-metal/core","ember-metal/error","ember-metal/property_get","ember-metal/property_set","ember-metal/properties","ember-metal/computed","ember-metal/merge","ember-metal/run_loop","ember-metal/enumerable_utils","ember-runtime/system/string","ember-runtime/system/object","ember-runtime/mixins/evented","ember-routing/system/dsl","ember-views/views/view","ember-routing/location/api","ember-handlebars/views/metamorph_view","ember-routing-handlebars/helpers/shared","exports"],
25527
- function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __exports__) {
25629
+ enifed("ember-routing/system/router",
25630
+ ["ember-metal/core","ember-metal/error","ember-metal/property_get","ember-metal/property_set","ember-metal/properties","ember-metal/computed","ember-metal/merge","ember-metal/run_loop","ember-metal/enumerable_utils","ember-runtime/system/string","ember-runtime/system/object","ember-runtime/mixins/evented","ember-routing/system/dsl","ember-views/views/view","ember-routing/location/api","ember-handlebars/views/metamorph_view","ember-routing-handlebars/helpers/shared","ember-metal/platform","exports"],
25631
+ function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __exports__) {
25528
25632
  "use strict";
25529
25633
  var Ember = __dependency1__["default"];
25530
25634
  // FEATURES, Logger, K, assert
@@ -25547,10 +25651,7 @@ define("ember-routing/system/router",
25547
25651
  var routeArgs = __dependency17__.routeArgs;
25548
25652
  var getActiveTargetName = __dependency17__.getActiveTargetName;
25549
25653
  var stashParamNames = __dependency17__.stashParamNames;
25550
-
25551
- // requireModule("ember-handlebars");
25552
- // requireModule("ember-runtime");
25553
- // requireModule("ember-views");
25654
+ var create = __dependency18__.create;
25554
25655
 
25555
25656
  /**
25556
25657
  @module ember
@@ -26399,7 +26500,7 @@ define("ember-routing/system/router",
26399
26500
 
26400
26501
  __exports__["default"] = EmberRouter;
26401
26502
  });
26402
- define("ember-runtime",
26503
+ enifed("ember-runtime",
26403
26504
  ["ember-metal","ember-runtime/core","ember-runtime/compare","ember-runtime/copy","ember-runtime/system/namespace","ember-runtime/system/object","ember-runtime/system/tracked_array","ember-runtime/system/subarray","ember-runtime/system/container","ember-runtime/system/application","ember-runtime/system/array_proxy","ember-runtime/system/object_proxy","ember-runtime/system/core_object","ember-runtime/system/each_proxy","ember-runtime/system/native_array","ember-runtime/system/set","ember-runtime/system/string","ember-runtime/system/deferred","ember-runtime/system/lazy_load","ember-runtime/mixins/array","ember-runtime/mixins/comparable","ember-runtime/mixins/copyable","ember-runtime/mixins/enumerable","ember-runtime/mixins/freezable","ember-runtime/mixins/-proxy","ember-runtime/mixins/observable","ember-runtime/mixins/action_handler","ember-runtime/mixins/deferred","ember-runtime/mixins/mutable_enumerable","ember-runtime/mixins/mutable_array","ember-runtime/mixins/target_action_support","ember-runtime/mixins/evented","ember-runtime/mixins/promise_proxy","ember-runtime/mixins/sortable","ember-runtime/computed/array_computed","ember-runtime/computed/reduce_computed","ember-runtime/computed/reduce_computed_macros","ember-runtime/controllers/array_controller","ember-runtime/controllers/object_controller","ember-runtime/controllers/controller","ember-runtime/mixins/controller","ember-runtime/ext/rsvp","ember-runtime/ext/string","ember-runtime/ext/function","exports"],
26404
26505
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __dependency19__, __dependency20__, __dependency21__, __dependency22__, __dependency23__, __dependency24__, __dependency25__, __dependency26__, __dependency27__, __dependency28__, __dependency29__, __dependency30__, __dependency31__, __dependency32__, __dependency33__, __dependency34__, __dependency35__, __dependency36__, __dependency37__, __dependency38__, __dependency39__, __dependency40__, __dependency41__, __dependency42__, __dependency43__, __dependency44__, __exports__) {
26405
26506
  "use strict";
@@ -26568,7 +26669,7 @@ define("ember-runtime",
26568
26669
 
26569
26670
  __exports__["default"] = Ember;
26570
26671
  });
26571
- define("ember-runtime/compare",
26672
+ enifed("ember-runtime/compare",
26572
26673
  ["ember-metal/utils","ember-runtime/mixins/comparable","exports"],
26573
26674
  function(__dependency1__, __dependency2__, __exports__) {
26574
26675
  "use strict";
@@ -26682,7 +26783,7 @@ define("ember-runtime/compare",
26682
26783
  }
26683
26784
  }
26684
26785
  });
26685
- define("ember-runtime/computed/array_computed",
26786
+ enifed("ember-runtime/computed/array_computed",
26686
26787
  ["ember-metal/core","ember-runtime/computed/reduce_computed","ember-metal/enumerable_utils","ember-metal/platform","ember-metal/observer","ember-metal/error","exports"],
26687
26788
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) {
26688
26789
  "use strict";
@@ -26875,7 +26976,7 @@ define("ember-runtime/computed/array_computed",
26875
26976
  __exports__.arrayComputed = arrayComputed;
26876
26977
  __exports__.ArrayComputedProperty = ArrayComputedProperty;
26877
26978
  });
26878
- define("ember-runtime/computed/reduce_computed",
26979
+ enifed("ember-runtime/computed/reduce_computed",
26879
26980
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/error","ember-metal/property_events","ember-metal/expand_properties","ember-metal/observer","ember-metal/computed","ember-metal/platform","ember-metal/enumerable_utils","ember-runtime/system/tracked_array","ember-runtime/mixins/array","ember-metal/run_loop","exports"],
26880
26981
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __exports__) {
26881
26982
  "use strict";
@@ -27153,6 +27254,7 @@ define("ember-runtime/computed/reduce_computed",
27153
27254
  this.setValue(removedItem.call(
27154
27255
  this.instanceMeta.context, this.getValue(), item, changeMeta, this.instanceMeta.sugarMeta));
27155
27256
  }
27257
+ this.callbacks.flushedChanges.call(this.instanceMeta.context, this.getValue(), this.instanceMeta.sugarMeta);
27156
27258
  },
27157
27259
 
27158
27260
  dependentArrayDidChange: function (dependentArray, index, removedCount, addedCount) {
@@ -27184,7 +27286,7 @@ define("ember-runtime/computed/reduce_computed",
27184
27286
  this.setValue(addedItem.call(
27185
27287
  this.instanceMeta.context, this.getValue(), item, changeMeta, this.instanceMeta.sugarMeta));
27186
27288
  }, this);
27187
-
27289
+ this.callbacks.flushedChanges.call(this.instanceMeta.context, this.getValue(), this.instanceMeta.sugarMeta);
27188
27290
  this.trackAdd(dependentKey, normalizedIndex, observerContexts);
27189
27291
  },
27190
27292
 
@@ -27228,6 +27330,7 @@ define("ember-runtime/computed/reduce_computed",
27228
27330
  }
27229
27331
 
27230
27332
  this.changedItems = {};
27333
+ this.callbacks.flushedChanges.call(this.instanceMeta.context, this.getValue(), this.instanceMeta.sugarMeta);
27231
27334
  }
27232
27335
  };
27233
27336
 
@@ -27264,6 +27367,7 @@ define("ember-runtime/computed/reduce_computed",
27264
27367
  meta.setValue( callbacks.addedItem.call(
27265
27368
  this, meta.getValue(), item, new ChangeMeta(dependentArray, item, index, propertyName, cp, dependentArray.length), meta.sugarMeta));
27266
27369
  }, this);
27370
+ callbacks.flushedChanges.call(this, meta.getValue(), meta.sugarMeta);
27267
27371
  }
27268
27372
 
27269
27373
  function reset(cp, propertyName) {
@@ -27441,7 +27545,8 @@ define("ember-runtime/computed/reduce_computed",
27441
27545
 
27442
27546
  this.callbacks = {
27443
27547
  removedItem: options.removedItem || defaultCallback,
27444
- addedItem: options.addedItem || defaultCallback
27548
+ addedItem: options.addedItem || defaultCallback,
27549
+ flushedChanges: options.flushedChanges || defaultCallback
27445
27550
  };
27446
27551
  }
27447
27552
 
@@ -27733,9 +27838,9 @@ define("ember-runtime/computed/reduce_computed",
27733
27838
 
27734
27839
  __exports__.reduceComputed = reduceComputed;
27735
27840
  });
27736
- define("ember-runtime/computed/reduce_computed_macros",
27737
- ["ember-metal/core","ember-metal/merge","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/error","ember-metal/enumerable_utils","ember-metal/run_loop","ember-metal/observer","ember-runtime/computed/array_computed","ember-runtime/computed/reduce_computed","ember-runtime/system/object_proxy","ember-runtime/system/subarray","ember-metal/keys","ember-runtime/compare","exports"],
27738
- function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __exports__) {
27841
+ enifed("ember-runtime/computed/reduce_computed_macros",
27842
+ ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/error","ember-metal/enumerable_utils","ember-metal/run_loop","ember-metal/observer","ember-runtime/computed/array_computed","ember-runtime/computed/reduce_computed","ember-runtime/system/subarray","ember-metal/keys","ember-runtime/compare","exports"],
27843
+ function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __exports__) {
27739
27844
  "use strict";
27740
27845
  /**
27741
27846
  @module ember
@@ -27744,21 +27849,19 @@ define("ember-runtime/computed/reduce_computed_macros",
27744
27849
 
27745
27850
  var Ember = __dependency1__["default"];
27746
27851
  // Ember.assert
27747
- var merge = __dependency2__["default"];
27748
- var get = __dependency3__.get;
27749
- var set = __dependency4__.set;
27750
- var isArray = __dependency5__.isArray;
27751
- var guidFor = __dependency5__.guidFor;
27752
- var EmberError = __dependency6__["default"];
27753
- var forEach = __dependency7__.forEach;
27754
- var run = __dependency8__["default"];
27755
- var addObserver = __dependency9__.addObserver;
27756
- var arrayComputed = __dependency10__.arrayComputed;
27757
- var reduceComputed = __dependency11__.reduceComputed;
27758
- var ObjectProxy = __dependency12__["default"];
27759
- var SubArray = __dependency13__["default"];
27760
- var keys = __dependency14__["default"];
27761
- var compare = __dependency15__["default"];
27852
+ var get = __dependency2__.get;
27853
+ var set = __dependency3__.set;
27854
+ var isArray = __dependency4__.isArray;
27855
+ var guidFor = __dependency4__.guidFor;
27856
+ var EmberError = __dependency5__["default"];
27857
+ var forEach = __dependency6__.forEach;
27858
+ var run = __dependency7__["default"];
27859
+ var addObserver = __dependency8__.addObserver;
27860
+ var arrayComputed = __dependency9__.arrayComputed;
27861
+ var reduceComputed = __dependency10__.reduceComputed;
27862
+ var SubArray = __dependency11__["default"];
27863
+ var keys = __dependency12__["default"];
27864
+ var compare = __dependency13__["default"];
27762
27865
 
27763
27866
  var a_slice = [].slice;
27764
27867
 
@@ -28338,8 +28441,8 @@ define("ember-runtime/computed/reduce_computed_macros",
28338
28441
  mid = low + Math.floor((high - low) / 2);
28339
28442
  midItem = array.objectAt(mid);
28340
28443
 
28341
- guidMid = _guidFor(midItem);
28342
- guidItem = _guidFor(item);
28444
+ guidMid = guidFor(midItem);
28445
+ guidItem = guidFor(item);
28343
28446
 
28344
28447
  if (guidMid === guidItem) {
28345
28448
  return mid;
@@ -28359,19 +28462,9 @@ define("ember-runtime/computed/reduce_computed_macros",
28359
28462
  }
28360
28463
 
28361
28464
  return mid;
28362
-
28363
- function _guidFor(item) {
28364
- if (SearchProxy.detectInstance(item)) {
28365
- return guidFor(get(item, 'content'));
28366
- }
28367
-
28368
- return guidFor(item);
28369
- }
28370
28465
  }
28371
28466
 
28372
28467
 
28373
- var SearchProxy = ObjectProxy.extend();
28374
-
28375
28468
  /**
28376
28469
  A computed property which returns a new array with all the
28377
28470
  properties from the first dependent array sorted based on a property
@@ -28440,17 +28533,53 @@ define("ember-runtime/computed/reduce_computed_macros",
28440
28533
  Ember.assert('Ember.computed.sort requires two arguments: an array key to sort and ' +
28441
28534
  'either a sort properties key or sort function', arguments.length === 2);
28442
28535
 
28443
- var initFn, sortPropertiesKey;
28444
-
28445
28536
  if (typeof sortDefinition === 'function') {
28446
- initFn = function (array, changeMeta, instanceMeta) {
28447
- instanceMeta.order = sortDefinition;
28448
- instanceMeta.binarySearch = binarySearch;
28449
- };
28537
+ return customSort(itemsKey, sortDefinition);
28450
28538
  } else {
28451
- sortPropertiesKey = sortDefinition;
28539
+ return propertySort(itemsKey, sortDefinition);
28540
+ }
28541
+ }
28542
+
28543
+ __exports__.sort = sort;function customSort(itemsKey, comparator) {
28544
+ return arrayComputed(itemsKey, {
28545
+ initialize: function (array, changeMeta, instanceMeta) {
28546
+ instanceMeta.order = comparator;
28547
+ instanceMeta.binarySearch = binarySearch;
28548
+ instanceMeta.waitingInsertions = [];
28549
+ instanceMeta.insertWaiting = function() {
28550
+ var index, item;
28551
+ var waiting = instanceMeta.waitingInsertions;
28552
+ instanceMeta.waitingInsertions = [];
28553
+ for (var i=0; i<waiting.length; i++) {
28554
+ item = waiting[i];
28555
+ index = instanceMeta.binarySearch(array, item);
28556
+ array.insertAt(index, item);
28557
+ }
28558
+ };
28559
+ instanceMeta.insertLater = function(item) {
28560
+ this.waitingInsertions.push(item);
28561
+ };
28562
+ },
28563
+
28564
+ addedItem: function (array, item, changeMeta, instanceMeta) {
28565
+ instanceMeta.insertLater(item);
28566
+ return array;
28567
+ },
28568
+
28569
+ removedItem: function (array, item, changeMeta, instanceMeta) {
28570
+ array.removeObject(item);
28571
+ return array;
28572
+ },
28573
+
28574
+ flushedChanges: function(array, instanceMeta) {
28575
+ instanceMeta.insertWaiting();
28576
+ }
28577
+ });
28578
+ }
28452
28579
 
28453
- initFn = function (array, changeMeta, instanceMeta) {
28580
+ function propertySort(itemsKey, sortPropertiesKey) {
28581
+ return arrayComputed(itemsKey, {
28582
+ initialize: function (array, changeMeta, instanceMeta) {
28454
28583
  function setupSortProperties() {
28455
28584
  var sortPropertyDefinitions = get(this, sortPropertiesKey);
28456
28585
  var sortProperties = instanceMeta.sortProperties = [];
@@ -28458,7 +28587,7 @@ define("ember-runtime/computed/reduce_computed_macros",
28458
28587
  var sortProperty, idx, asc;
28459
28588
 
28460
28589
  Ember.assert('Cannot sort: \'' + sortPropertiesKey + '\' is not an array.',
28461
- isArray(sortPropertyDefinitions));
28590
+ isArray(sortPropertyDefinitions));
28462
28591
 
28463
28592
  changeMeta.property.clearItemPropertyKeys(itemsKey);
28464
28593
 
@@ -28492,12 +28621,14 @@ define("ember-runtime/computed/reduce_computed_macros",
28492
28621
  setupSortProperties.call(this);
28493
28622
 
28494
28623
  instanceMeta.order = function (itemA, itemB) {
28495
- var isProxy = itemB instanceof SearchProxy;
28496
28624
  var sortProperty, result, asc;
28625
+ var keyA = this.keyFor(itemA);
28626
+ var keyB = this.keyFor(itemB);
28497
28627
 
28498
28628
  for (var i = 0; i < this.sortProperties.length; ++i) {
28499
28629
  sortProperty = this.sortProperties[i];
28500
- result = compare(get(itemA, sortProperty), isProxy ? itemB[sortProperty] : get(itemB, sortProperty));
28630
+
28631
+ result = compare(keyA[sortProperty], keyB[sortProperty]);
28501
28632
 
28502
28633
  if (result !== 0) {
28503
28634
  asc = this.sortPropertyAscending[sortProperty];
@@ -28509,41 +28640,48 @@ define("ember-runtime/computed/reduce_computed_macros",
28509
28640
  };
28510
28641
 
28511
28642
  instanceMeta.binarySearch = binarySearch;
28512
- };
28513
- }
28514
-
28515
- return arrayComputed(itemsKey, {
28516
- initialize: initFn,
28643
+ setupKeyCache(instanceMeta);
28644
+ },
28517
28645
 
28518
28646
  addedItem: function (array, item, changeMeta, instanceMeta) {
28519
28647
  var index = instanceMeta.binarySearch(array, item);
28520
28648
  array.insertAt(index, item);
28521
-
28522
28649
  return array;
28523
28650
  },
28524
28651
 
28525
28652
  removedItem: function (array, item, changeMeta, instanceMeta) {
28526
- var proxyProperties, index, searchItem;
28527
-
28528
- if (changeMeta.previousValues) {
28529
- proxyProperties = merge({ content: item }, changeMeta.previousValues);
28530
-
28531
- searchItem = SearchProxy.create(proxyProperties);
28532
- } else {
28533
- searchItem = item;
28534
- }
28535
-
28536
- index = instanceMeta.binarySearch(array, searchItem);
28653
+ var index = instanceMeta.binarySearch(array, item);
28537
28654
  array.removeAt(index);
28538
-
28655
+ instanceMeta.dropKeyFor(item);
28539
28656
  return array;
28540
28657
  }
28541
28658
  });
28542
28659
  }
28543
28660
 
28544
- __exports__.sort = sort;
28661
+ function setupKeyCache(instanceMeta) {
28662
+ instanceMeta.keyFor = function(item) {
28663
+ var guid = guidFor(item);
28664
+ if (this.keyCache[guid]) {
28665
+ return this.keyCache[guid];
28666
+ }
28667
+ var sortProperty;
28668
+ var key = {};
28669
+ for (var i = 0; i < this.sortProperties.length; ++i) {
28670
+ sortProperty = this.sortProperties[i];
28671
+ key[sortProperty] = get(item, sortProperty);
28672
+ }
28673
+ return this.keyCache[guid] = key;
28674
+ };
28675
+
28676
+ instanceMeta.dropKeyFor = function(item) {
28677
+ var guid = guidFor(item);
28678
+ this.keyCache[guid] = null;
28679
+ };
28680
+
28681
+ instanceMeta.keyCache = {};
28682
+ }
28545
28683
  });
28546
- define("ember-runtime/controllers/array_controller",
28684
+ enifed("ember-runtime/controllers/array_controller",
28547
28685
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/enumerable_utils","ember-runtime/system/array_proxy","ember-runtime/mixins/sortable","ember-runtime/mixins/controller","ember-metal/computed","ember-metal/error","exports"],
28548
28686
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __exports__) {
28549
28687
  "use strict";
@@ -28832,7 +28970,7 @@ define("ember-runtime/controllers/array_controller",
28832
28970
  }
28833
28971
  });
28834
28972
  });
28835
- define("ember-runtime/controllers/controller",
28973
+ enifed("ember-runtime/controllers/controller",
28836
28974
  ["ember-runtime/system/object","ember-runtime/mixins/controller","exports"],
28837
28975
  function(__dependency1__, __dependency2__, __exports__) {
28838
28976
  "use strict";
@@ -28852,7 +28990,7 @@ define("ember-runtime/controllers/controller",
28852
28990
  */
28853
28991
  __exports__["default"] = EmberObject.extend(Mixin);
28854
28992
  });
28855
- define("ember-runtime/controllers/object_controller",
28993
+ enifed("ember-runtime/controllers/object_controller",
28856
28994
  ["ember-runtime/mixins/controller","ember-runtime/system/object_proxy","exports"],
28857
28995
  function(__dependency1__, __dependency2__, __exports__) {
28858
28996
  "use strict";
@@ -28879,7 +29017,7 @@ define("ember-runtime/controllers/object_controller",
28879
29017
  **/
28880
29018
  __exports__["default"] = ObjectProxy.extend(ControllerMixin);
28881
29019
  });
28882
- define("ember-runtime/copy",
29020
+ enifed("ember-runtime/copy",
28883
29021
  ["ember-metal/enumerable_utils","ember-metal/utils","ember-runtime/system/object","ember-runtime/mixins/copyable","exports"],
28884
29022
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
28885
29023
  "use strict";
@@ -28974,7 +29112,7 @@ define("ember-runtime/copy",
28974
29112
  return _copy(obj, deep, deep ? [] : null, deep ? [] : null);
28975
29113
  }
28976
29114
  });
28977
- define("ember-runtime/core",
29115
+ enifed("ember-runtime/core",
28978
29116
  ["exports"],
28979
29117
  function(__exports__) {
28980
29118
  "use strict";
@@ -29014,7 +29152,7 @@ define("ember-runtime/core",
29014
29152
  };
29015
29153
  __exports__.isEqual = isEqual;
29016
29154
  });
29017
- define("ember-runtime/ext/function",
29155
+ enifed("ember-runtime/ext/function",
29018
29156
  ["ember-metal/core","ember-metal/expand_properties","ember-metal/computed","ember-metal/mixin"],
29019
29157
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__) {
29020
29158
  "use strict";
@@ -29235,7 +29373,7 @@ define("ember-runtime/ext/function",
29235
29373
  };
29236
29374
  }
29237
29375
  });
29238
- define("ember-runtime/ext/rsvp",
29376
+ enifed("ember-runtime/ext/rsvp",
29239
29377
  ["ember-metal/core","ember-metal/logger","ember-metal/run_loop","exports"],
29240
29378
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
29241
29379
  "use strict";
@@ -29303,7 +29441,7 @@ define("ember-runtime/ext/rsvp",
29303
29441
 
29304
29442
  __exports__["default"] = RSVP;
29305
29443
  });
29306
- define("ember-runtime/ext/string",
29444
+ enifed("ember-runtime/ext/string",
29307
29445
  ["ember-metal/core","ember-runtime/system/string"],
29308
29446
  function(__dependency1__, __dependency2__) {
29309
29447
  "use strict";
@@ -29419,7 +29557,7 @@ define("ember-runtime/ext/string",
29419
29557
  };
29420
29558
  }
29421
29559
  });
29422
- define("ember-runtime/mixins/-proxy",
29560
+ enifed("ember-runtime/mixins/-proxy",
29423
29561
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/observer","ember-metal/property_events","ember-metal/computed","ember-metal/properties","ember-metal/mixin","ember-runtime/system/string","ember-runtime/system/object","exports"],
29424
29562
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __exports__) {
29425
29563
  "use strict";
@@ -29517,7 +29655,7 @@ define("ember-runtime/mixins/-proxy",
29517
29655
 
29518
29656
  });
29519
29657
  });
29520
- define("ember-runtime/mixins/action_handler",
29658
+ enifed("ember-runtime/mixins/action_handler",
29521
29659
  ["ember-metal/merge","ember-metal/mixin","ember-metal/property_get","ember-metal/utils","exports"],
29522
29660
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
29523
29661
  "use strict";
@@ -29747,7 +29885,7 @@ define("ember-runtime/mixins/action_handler",
29747
29885
 
29748
29886
  __exports__["default"] = ActionHandler;
29749
29887
  });
29750
- define("ember-runtime/mixins/array",
29888
+ enifed("ember-runtime/mixins/array",
29751
29889
  ["ember-metal/core","ember-metal/property_get","ember-metal/computed","ember-metal/is_none","ember-runtime/mixins/enumerable","ember-metal/enumerable_utils","ember-metal/mixin","ember-metal/property_events","ember-metal/events","ember-metal/watching","exports"],
29752
29890
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __exports__) {
29753
29891
  "use strict";
@@ -30268,7 +30406,7 @@ define("ember-runtime/mixins/array",
30268
30406
  })
30269
30407
  });
30270
30408
  });
30271
- define("ember-runtime/mixins/comparable",
30409
+ enifed("ember-runtime/mixins/comparable",
30272
30410
  ["ember-metal/mixin","exports"],
30273
30411
  function(__dependency1__, __exports__) {
30274
30412
  "use strict";
@@ -30310,7 +30448,7 @@ define("ember-runtime/mixins/comparable",
30310
30448
  compare: required(Function)
30311
30449
  });
30312
30450
  });
30313
- define("ember-runtime/mixins/controller",
30451
+ enifed("ember-runtime/mixins/controller",
30314
30452
  ["ember-metal/core","ember-metal/property_get","ember-runtime/system/object","ember-metal/mixin","ember-metal/computed","ember-runtime/mixins/action_handler","ember-runtime/mixins/controller_content_model_alias_deprecation","exports"],
30315
30453
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) {
30316
30454
  "use strict";
@@ -30378,7 +30516,7 @@ define("ember-runtime/mixins/controller",
30378
30516
 
30379
30517
  });
30380
30518
  });
30381
- define("ember-runtime/mixins/controller_content_model_alias_deprecation",
30519
+ enifed("ember-runtime/mixins/controller_content_model_alias_deprecation",
30382
30520
  ["ember-metal/core","ember-metal/property_get","ember-metal/mixin","exports"],
30383
30521
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
30384
30522
  "use strict";
@@ -30437,7 +30575,7 @@ define("ember-runtime/mixins/controller_content_model_alias_deprecation",
30437
30575
  }
30438
30576
  });
30439
30577
  });
30440
- define("ember-runtime/mixins/copyable",
30578
+ enifed("ember-runtime/mixins/copyable",
30441
30579
  ["ember-metal/property_get","ember-metal/property_set","ember-metal/mixin","ember-runtime/mixins/freezable","ember-runtime/system/string","ember-metal/error","exports"],
30442
30580
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) {
30443
30581
  "use strict";
@@ -30505,7 +30643,7 @@ define("ember-runtime/mixins/copyable",
30505
30643
  }
30506
30644
  });
30507
30645
  });
30508
- define("ember-runtime/mixins/deferred",
30646
+ enifed("ember-runtime/mixins/deferred",
30509
30647
  ["ember-metal/core","ember-metal/property_get","ember-metal/mixin","ember-metal/computed","ember-runtime/ext/rsvp","exports"],
30510
30648
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
30511
30649
  "use strict";
@@ -30586,7 +30724,7 @@ define("ember-runtime/mixins/deferred",
30586
30724
  })
30587
30725
  });
30588
30726
  });
30589
- define("ember-runtime/mixins/enumerable",
30727
+ enifed("ember-runtime/mixins/enumerable",
30590
30728
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/mixin","ember-metal/enumerable_utils","ember-metal/computed","ember-metal/property_events","ember-metal/events","ember-runtime/compare","exports"],
30591
30729
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __exports__) {
30592
30730
  "use strict";
@@ -31626,7 +31764,7 @@ define("ember-runtime/mixins/enumerable",
31626
31764
  }
31627
31765
  });
31628
31766
  });
31629
- define("ember-runtime/mixins/evented",
31767
+ enifed("ember-runtime/mixins/evented",
31630
31768
  ["ember-metal/mixin","ember-metal/events","exports"],
31631
31769
  function(__dependency1__, __dependency2__, __exports__) {
31632
31770
  "use strict";
@@ -31783,7 +31921,7 @@ define("ember-runtime/mixins/evented",
31783
31921
  }
31784
31922
  });
31785
31923
  });
31786
- define("ember-runtime/mixins/freezable",
31924
+ enifed("ember-runtime/mixins/freezable",
31787
31925
  ["ember-metal/mixin","ember-metal/property_get","ember-metal/property_set","exports"],
31788
31926
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
31789
31927
  "use strict";
@@ -31881,7 +32019,7 @@ define("ember-runtime/mixins/freezable",
31881
32019
  var FROZEN_ERROR = "Frozen object cannot be modified.";
31882
32020
  __exports__.FROZEN_ERROR = FROZEN_ERROR;
31883
32021
  });
31884
- define("ember-runtime/mixins/mutable_array",
32022
+ enifed("ember-runtime/mixins/mutable_array",
31885
32023
  ["ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/error","ember-metal/mixin","ember-runtime/mixins/array","ember-runtime/mixins/mutable_enumerable","ember-runtime/mixins/enumerable","exports"],
31886
32024
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
31887
32025
  "use strict";
@@ -32235,7 +32373,7 @@ define("ember-runtime/mixins/mutable_array",
32235
32373
 
32236
32374
  });
32237
32375
  });
32238
- define("ember-runtime/mixins/mutable_enumerable",
32376
+ enifed("ember-runtime/mixins/mutable_enumerable",
32239
32377
  ["ember-metal/enumerable_utils","ember-runtime/mixins/enumerable","ember-metal/mixin","ember-metal/property_events","exports"],
32240
32378
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
32241
32379
  "use strict";
@@ -32356,7 +32494,7 @@ define("ember-runtime/mixins/mutable_enumerable",
32356
32494
  }
32357
32495
  });
32358
32496
  });
32359
- define("ember-runtime/mixins/observable",
32497
+ enifed("ember-runtime/mixins/observable",
32360
32498
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/get_properties","ember-metal/set_properties","ember-metal/mixin","ember-metal/events","ember-metal/property_events","ember-metal/observer","ember-metal/computed","ember-metal/is_none","exports"],
32361
32499
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) {
32362
32500
  "use strict";
@@ -32866,7 +33004,7 @@ define("ember-runtime/mixins/observable",
32866
33004
  }
32867
33005
  });
32868
33006
  });
32869
- define("ember-runtime/mixins/promise_proxy",
33007
+ enifed("ember-runtime/mixins/promise_proxy",
32870
33008
  ["ember-metal/property_get","ember-metal/set_properties","ember-metal/computed","ember-metal/mixin","ember-metal/error","exports"],
32871
33009
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
32872
33010
  "use strict";
@@ -33080,7 +33218,7 @@ define("ember-runtime/mixins/promise_proxy",
33080
33218
  };
33081
33219
  }
33082
33220
  });
33083
- define("ember-runtime/mixins/sortable",
33221
+ enifed("ember-runtime/mixins/sortable",
33084
33222
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/enumerable_utils","ember-metal/mixin","ember-runtime/mixins/mutable_enumerable","ember-runtime/compare","ember-metal/observer","ember-metal/computed","exports"],
33085
33223
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __exports__) {
33086
33224
  "use strict";
@@ -33386,7 +33524,7 @@ define("ember-runtime/mixins/sortable",
33386
33524
  }
33387
33525
  });
33388
33526
  });
33389
- define("ember-runtime/mixins/target_action_support",
33527
+ enifed("ember-runtime/mixins/target_action_support",
33390
33528
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/mixin","ember-metal/computed","exports"],
33391
33529
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) {
33392
33530
  "use strict";
@@ -33536,7 +33674,7 @@ define("ember-runtime/mixins/target_action_support",
33536
33674
 
33537
33675
  __exports__["default"] = TargetActionSupport;
33538
33676
  });
33539
- define("ember-runtime/system/application",
33677
+ enifed("ember-runtime/system/application",
33540
33678
  ["ember-runtime/system/namespace","exports"],
33541
33679
  function(__dependency1__, __exports__) {
33542
33680
  "use strict";
@@ -33544,7 +33682,7 @@ define("ember-runtime/system/application",
33544
33682
 
33545
33683
  __exports__["default"] = Namespace.extend();
33546
33684
  });
33547
- define("ember-runtime/system/array_proxy",
33685
+ enifed("ember-runtime/system/array_proxy",
33548
33686
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/computed","ember-metal/mixin","ember-metal/property_events","ember-metal/error","ember-runtime/system/object","ember-runtime/mixins/mutable_array","ember-runtime/mixins/enumerable","ember-runtime/system/string","exports"],
33549
33687
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) {
33550
33688
  "use strict";
@@ -33922,7 +34060,7 @@ define("ember-runtime/system/array_proxy",
33922
34060
 
33923
34061
  __exports__["default"] = ArrayProxy;
33924
34062
  });
33925
- define("ember-runtime/system/container",
34063
+ enifed("ember-runtime/system/container",
33926
34064
  ["ember-metal/property_set","exports"],
33927
34065
  function(__dependency1__, __exports__) {
33928
34066
  "use strict";
@@ -33933,10 +34071,14 @@ define("ember-runtime/system/container",
33933
34071
 
33934
34072
  __exports__["default"] = Container;
33935
34073
  });
33936
- define("ember-runtime/system/core_object",
34074
+ enifed("ember-runtime/system/core_object",
33937
34075
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/platform","ember-metal/watching","ember-metal/chains","ember-metal/events","ember-metal/mixin","ember-metal/enumerable_utils","ember-metal/error","ember-metal/keys","ember-runtime/mixins/action_handler","ember-metal/properties","ember-metal/binding","ember-metal/computed","ember-metal/run_loop","exports"],
33938
34076
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __exports__) {
33939
- "use strict";
34077
+ // Remove "use strict"; from transpiled module until
34078
+ // https://bugs.webkit.org/show_bug.cgi?id=138038 is fixed
34079
+ //
34080
+ // REMOVE_USE_STRICT: true
34081
+
33940
34082
  /**
33941
34083
  @module ember
33942
34084
  @submodule ember-runtime
@@ -34789,7 +34931,7 @@ define("ember-runtime/system/core_object",
34789
34931
 
34790
34932
  __exports__["default"] = CoreObject;
34791
34933
  });
34792
- define("ember-runtime/system/deferred",
34934
+ enifed("ember-runtime/system/deferred",
34793
34935
  ["ember-metal/core","ember-runtime/mixins/deferred","ember-metal/property_get","ember-runtime/system/object","exports"],
34794
34936
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
34795
34937
  "use strict";
@@ -34815,7 +34957,7 @@ define("ember-runtime/system/deferred",
34815
34957
 
34816
34958
  __exports__["default"] = Deferred;
34817
34959
  });
34818
- define("ember-runtime/system/each_proxy",
34960
+ enifed("ember-runtime/system/each_proxy",
34819
34961
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/enumerable_utils","ember-metal/array","ember-runtime/mixins/array","ember-runtime/system/object","ember-metal/computed","ember-metal/observer","ember-metal/events","ember-metal/properties","ember-metal/property_events","exports"],
34820
34962
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __exports__) {
34821
34963
  "use strict";
@@ -35048,7 +35190,7 @@ define("ember-runtime/system/each_proxy",
35048
35190
  __exports__.EachArray = EachArray;
35049
35191
  __exports__.EachProxy = EachProxy;
35050
35192
  });
35051
- define("ember-runtime/system/lazy_load",
35193
+ enifed("ember-runtime/system/lazy_load",
35052
35194
  ["ember-metal/core","ember-metal/array","ember-runtime/system/native_array","exports"],
35053
35195
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
35054
35196
  "use strict";
@@ -35122,7 +35264,7 @@ define("ember-runtime/system/lazy_load",
35122
35264
 
35123
35265
  __exports__.runLoadHooks = runLoadHooks;
35124
35266
  });
35125
- define("ember-runtime/system/namespace",
35267
+ enifed("ember-runtime/system/namespace",
35126
35268
  ["ember-metal/core","ember-metal/property_get","ember-metal/array","ember-metal/utils","ember-metal/mixin","ember-runtime/system/object","exports"],
35127
35269
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) {
35128
35270
  "use strict";
@@ -35346,7 +35488,7 @@ define("ember-runtime/system/namespace",
35346
35488
 
35347
35489
  __exports__["default"] = Namespace;
35348
35490
  });
35349
- define("ember-runtime/system/native_array",
35491
+ enifed("ember-runtime/system/native_array",
35350
35492
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/enumerable_utils","ember-metal/mixin","ember-metal/array","ember-runtime/mixins/array","ember-runtime/mixins/mutable_array","ember-runtime/mixins/observable","ember-runtime/mixins/copyable","ember-runtime/mixins/freezable","ember-runtime/copy","exports"],
35351
35493
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) {
35352
35494
  "use strict";
@@ -35524,7 +35666,7 @@ define("ember-runtime/system/native_array",
35524
35666
  __exports__.NativeArray = NativeArray;
35525
35667
  __exports__["default"] = NativeArray;
35526
35668
  });
35527
- define("ember-runtime/system/object",
35669
+ enifed("ember-runtime/system/object",
35528
35670
  ["ember-runtime/system/core_object","ember-runtime/mixins/observable","exports"],
35529
35671
  function(__dependency1__, __dependency2__, __exports__) {
35530
35672
  "use strict";
@@ -35553,7 +35695,7 @@ define("ember-runtime/system/object",
35553
35695
 
35554
35696
  __exports__["default"] = EmberObject;
35555
35697
  });
35556
- define("ember-runtime/system/object_proxy",
35698
+ enifed("ember-runtime/system/object_proxy",
35557
35699
  ["ember-runtime/system/object","ember-runtime/mixins/-proxy","exports"],
35558
35700
  function(__dependency1__, __dependency2__, __exports__) {
35559
35701
  "use strict";
@@ -35631,7 +35773,7 @@ define("ember-runtime/system/object_proxy",
35631
35773
 
35632
35774
  __exports__["default"] = EmberObject.extend(_ProxyMixin);
35633
35775
  });
35634
- define("ember-runtime/system/set",
35776
+ enifed("ember-runtime/system/set",
35635
35777
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/is_none","ember-runtime/system/string","ember-runtime/system/core_object","ember-runtime/mixins/mutable_enumerable","ember-runtime/mixins/enumerable","ember-runtime/mixins/copyable","ember-runtime/mixins/freezable","ember-metal/error","ember-metal/property_events","ember-metal/mixin","ember-metal/computed","exports"],
35636
35778
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __exports__) {
35637
35779
  "use strict";
@@ -36103,7 +36245,7 @@ define("ember-runtime/system/set",
36103
36245
  }
36104
36246
  });
36105
36247
  });
36106
- define("ember-runtime/system/string",
36248
+ enifed("ember-runtime/system/string",
36107
36249
  ["ember-metal/core","ember-metal/utils","ember-metal/cache","exports"],
36108
36250
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
36109
36251
  "use strict";
@@ -36418,7 +36560,7 @@ define("ember-runtime/system/string",
36418
36560
  __exports__.underscore = underscore;
36419
36561
  __exports__.capitalize = capitalize;
36420
36562
  });
36421
- define("ember-runtime/system/subarray",
36563
+ enifed("ember-runtime/system/subarray",
36422
36564
  ["ember-metal/property_get","ember-metal/error","ember-metal/enumerable_utils","exports"],
36423
36565
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
36424
36566
  "use strict";
@@ -36600,7 +36742,7 @@ define("ember-runtime/system/subarray",
36600
36742
  }
36601
36743
  };
36602
36744
  });
36603
- define("ember-runtime/system/tracked_array",
36745
+ enifed("ember-runtime/system/tracked_array",
36604
36746
  ["ember-metal/property_get","ember-metal/enumerable_utils","exports"],
36605
36747
  function(__dependency1__, __dependency2__, __exports__) {
36606
36748
  "use strict";
@@ -36932,7 +37074,7 @@ define("ember-runtime/system/tracked_array",
36932
37074
  this.rangeStart = rangeStart;
36933
37075
  }
36934
37076
  });
36935
- define("ember-testing",
37077
+ enifed("ember-testing",
36936
37078
  ["ember-metal/core","ember-testing/initializers","ember-testing/support","ember-testing/setup_for_testing","ember-testing/test","ember-testing/adapters/adapter","ember-testing/adapters/qunit","ember-testing/helpers"],
36937
37079
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__) {
36938
37080
  "use strict";
@@ -36960,7 +37102,7 @@ define("ember-testing",
36960
37102
  Ember.Test.QUnitAdapter = QUnitAdapter;
36961
37103
  Ember.setupForTesting = setupForTesting;
36962
37104
  });
36963
- define("ember-testing/adapters/adapter",
37105
+ enifed("ember-testing/adapters/adapter",
36964
37106
  ["ember-metal/core","ember-metal/utils","ember-runtime/system/object","exports"],
36965
37107
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
36966
37108
  "use strict";
@@ -37025,7 +37167,7 @@ define("ember-testing/adapters/adapter",
37025
37167
 
37026
37168
  __exports__["default"] = Adapter;
37027
37169
  });
37028
- define("ember-testing/adapters/qunit",
37170
+ enifed("ember-testing/adapters/qunit",
37029
37171
  ["ember-testing/adapters/adapter","ember-metal/utils","exports"],
37030
37172
  function(__dependency1__, __dependency2__, __exports__) {
37031
37173
  "use strict";
@@ -37052,7 +37194,7 @@ define("ember-testing/adapters/qunit",
37052
37194
  }
37053
37195
  });
37054
37196
  });
37055
- define("ember-testing/helpers",
37197
+ enifed("ember-testing/helpers",
37056
37198
  ["ember-metal/property_get","ember-metal/error","ember-metal/run_loop","ember-views/system/jquery","ember-testing/test"],
37057
37199
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__) {
37058
37200
  "use strict";
@@ -37475,7 +37617,7 @@ define("ember-testing/helpers",
37475
37617
  */
37476
37618
  asyncHelper('triggerEvent', triggerEvent);
37477
37619
  });
37478
- define("ember-testing/initializers",
37620
+ enifed("ember-testing/initializers",
37479
37621
  ["ember-runtime/system/lazy_load"],
37480
37622
  function(__dependency1__) {
37481
37623
  "use strict";
@@ -37497,7 +37639,7 @@ define("ember-testing/initializers",
37497
37639
  }
37498
37640
  });
37499
37641
  });
37500
- define("ember-testing/setup_for_testing",
37642
+ enifed("ember-testing/setup_for_testing",
37501
37643
  ["ember-metal/core","ember-testing/adapters/qunit","ember-views/system/jquery","exports"],
37502
37644
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
37503
37645
  "use strict";
@@ -37552,7 +37694,7 @@ define("ember-testing/setup_for_testing",
37552
37694
  jQuery(document).on('ajaxComplete', decrementAjaxPendingRequests);
37553
37695
  }
37554
37696
  });
37555
- define("ember-testing/support",
37697
+ enifed("ember-testing/support",
37556
37698
  ["ember-metal/core","ember-views/system/jquery"],
37557
37699
  function(__dependency1__, __dependency2__) {
37558
37700
  "use strict";
@@ -37612,7 +37754,7 @@ define("ember-testing/support",
37612
37754
  });
37613
37755
  });
37614
37756
  });
37615
- define("ember-testing/test",
37757
+ enifed("ember-testing/test",
37616
37758
  ["ember-metal/core","ember-metal/run_loop","ember-metal/platform","ember-runtime/compare","ember-runtime/ext/rsvp","ember-testing/setup_for_testing","ember-application/system/application","exports"],
37617
37759
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) {
37618
37760
  "use strict";
@@ -38136,7 +38278,7 @@ define("ember-testing/test",
38136
38278
 
38137
38279
  __exports__["default"] = Test;
38138
38280
  });
38139
- define("ember-views",
38281
+ enifed("ember-views",
38140
38282
  ["ember-runtime","ember-views/system/jquery","ember-views/system/utils","ember-views/system/render_buffer","ember-views/system/ext","ember-views/views/states","ember-views/views/core_view","ember-views/views/view","ember-views/views/container_view","ember-views/views/collection_view","ember-views/views/component","ember-views/system/event_dispatcher","ember-views/mixins/view_target_action_support","exports"],
38141
38283
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __exports__) {
38142
38284
  "use strict";
@@ -38197,7 +38339,7 @@ define("ember-views",
38197
38339
 
38198
38340
  __exports__["default"] = Ember;
38199
38341
  });
38200
- define("ember-views/mixins/component_template_deprecation",
38342
+ enifed("ember-views/mixins/component_template_deprecation",
38201
38343
  ["ember-metal/core","ember-metal/property_get","ember-metal/mixin","exports"],
38202
38344
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
38203
38345
  "use strict";
@@ -38265,7 +38407,7 @@ define("ember-views/mixins/component_template_deprecation",
38265
38407
  }
38266
38408
  });
38267
38409
  });
38268
- define("ember-views/mixins/view_target_action_support",
38410
+ enifed("ember-views/mixins/view_target_action_support",
38269
38411
  ["ember-metal/mixin","ember-runtime/mixins/target_action_support","ember-metal/computed","exports"],
38270
38412
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
38271
38413
  "use strict";
@@ -38328,7 +38470,7 @@ define("ember-views/mixins/view_target_action_support",
38328
38470
  actionContext: alias('context')
38329
38471
  });
38330
38472
  });
38331
- define("ember-views/system/action_manager",
38473
+ enifed("ember-views/system/action_manager",
38332
38474
  ["exports"],
38333
38475
  function(__exports__) {
38334
38476
  "use strict";
@@ -38350,7 +38492,7 @@ define("ember-views/system/action_manager",
38350
38492
 
38351
38493
  __exports__["default"] = ActionManager;
38352
38494
  });
38353
- define("ember-views/system/event_dispatcher",
38495
+ enifed("ember-views/system/event_dispatcher",
38354
38496
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/is_none","ember-metal/run_loop","ember-metal/utils","ember-runtime/system/string","ember-runtime/system/object","ember-views/system/jquery","ember-views/system/action_manager","ember-views/views/view","ember-metal/merge","exports"],
38355
38497
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) {
38356
38498
  "use strict";
@@ -38602,7 +38744,7 @@ define("ember-views/system/event_dispatcher",
38602
38744
  }
38603
38745
  });
38604
38746
  });
38605
- define("ember-views/system/ext",
38747
+ enifed("ember-views/system/ext",
38606
38748
  ["ember-metal/run_loop"],
38607
38749
  function(__dependency1__) {
38608
38750
  "use strict";
@@ -38620,7 +38762,7 @@ define("ember-views/system/ext",
38620
38762
  run._addQueue('render', 'actions');
38621
38763
  run._addQueue('afterRender', 'render');
38622
38764
  });
38623
- define("ember-views/system/jquery",
38765
+ enifed("ember-views/system/jquery",
38624
38766
  ["ember-metal/core","ember-runtime/system/string","ember-metal/enumerable_utils","exports"],
38625
38767
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
38626
38768
  "use strict";
@@ -38641,8 +38783,8 @@ define("ember-views/system/jquery",
38641
38783
  */
38642
38784
 
38643
38785
  var jQuery = (Ember.imports && Ember.imports.jQuery) || (this && this.jQuery);
38644
- if (!jQuery && typeof require === 'function') {
38645
- jQuery = require('jquery');
38786
+ if (!jQuery && typeof eriuqer === 'function') {
38787
+ jQuery = eriuqer('jquery');
38646
38788
  }
38647
38789
 
38648
38790
  Ember.assert("Ember Views require jQuery between 1.7 and 2.1", jQuery && (jQuery().jquery.match(/^((1\.(7|8|9|10|11))|(2\.(0|1)))(\.\d+)?(pre|rc\d?)?/) || Ember.ENV.FORCE_JQUERY));
@@ -38664,9 +38806,9 @@ define("ember-views/system/jquery",
38664
38806
 
38665
38807
  __exports__["default"] = jQuery;
38666
38808
  });
38667
- define("ember-views/system/render_buffer",
38668
- ["ember-views/system/jquery","morph","ember-metal/core","exports"],
38669
- function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
38809
+ enifed("ember-views/system/render_buffer",
38810
+ ["ember-views/system/jquery","morph","ember-metal/core","ember-metal/platform","exports"],
38811
+ function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
38670
38812
  "use strict";
38671
38813
  /**
38672
38814
  @module ember
@@ -38676,6 +38818,7 @@ define("ember-views/system/render_buffer",
38676
38818
  var jQuery = __dependency1__["default"];
38677
38819
  var DOMHelper = __dependency2__.DOMHelper;
38678
38820
  var Ember = __dependency3__["default"];
38821
+ var create = __dependency4__.create;
38679
38822
 
38680
38823
  // The HTML spec allows for "omitted start tags". These tags are optional
38681
38824
  // when their intended child is the first thing in the parent tag. For
@@ -38724,7 +38867,7 @@ define("ember-views/system/render_buffer",
38724
38867
  }
38725
38868
 
38726
38869
  function ClassSet() {
38727
- this.seen = Object.create(null);
38870
+ this.seen = create(null);
38728
38871
  this.list = [];
38729
38872
  }
38730
38873
 
@@ -38812,7 +38955,7 @@ define("ember-views/system/render_buffer",
38812
38955
 
38813
38956
  function _RenderBuffer(tagName, contextualElement) {
38814
38957
  this.tagName = tagName;
38815
- this._contextualElement = contextualElement;
38958
+ this._outerContextualElement = contextualElement;
38816
38959
  this.buffer = null;
38817
38960
  this.childViews = [];
38818
38961
  this.dom = new DOMHelper();
@@ -38824,7 +38967,7 @@ define("ember-views/system/render_buffer",
38824
38967
  this.tagName = tagName;
38825
38968
  this.buffer = null;
38826
38969
  this._element = null;
38827
- this._contextualElement = contextualElement;
38970
+ this._outerContextualElement = contextualElement;
38828
38971
  this.elementClasses = null;
38829
38972
  this.elementId = null;
38830
38973
  this.elementAttributes = null;
@@ -38838,7 +38981,7 @@ define("ember-views/system/render_buffer",
38838
38981
  _element: null,
38839
38982
 
38840
38983
  // The root view's contextualElement
38841
- _contextualElement: null,
38984
+ _outerContextualElement: null,
38842
38985
 
38843
38986
  /**
38844
38987
  An internal set used to de-dupe class names when `addClass()` is
@@ -38949,6 +39092,14 @@ define("ember-views/system/render_buffer",
38949
39092
  for (var i=0,l=childViews.length; i<l; i++) {
38950
39093
  var childView = childViews[i];
38951
39094
  var ref = el.querySelector('#morph-'+i);
39095
+
39096
+ Ember.assert('An error occured while setting up template bindings. Please check ' +
39097
+ (childView && childView._parentView && childView._parentView._debugTemplateName ?
39098
+ '"' + childView._parentView._debugTemplateName + '" template ' :
39099
+ ''
39100
+ ) + 'for invalid markup or bindings within HTML comments.',
39101
+ ref);
39102
+
38952
39103
  var parent = ref.parentNode;
38953
39104
 
38954
39105
  childView._morph = this.dom.insertMorphBefore(
@@ -38967,11 +39118,11 @@ define("ember-views/system/render_buffer",
38967
39118
  @param {String} string HTML to push into the buffer
38968
39119
  @chainable
38969
39120
  */
38970
- push: function(string) {
39121
+ push: function(content) {
38971
39122
  if (this.buffer === null) {
38972
39123
  this.buffer = '';
38973
39124
  }
38974
- this.buffer += string;
39125
+ this.buffer += content;
38975
39126
  return this;
38976
39127
  },
38977
39128
 
@@ -39117,7 +39268,7 @@ define("ember-views/system/render_buffer",
39117
39268
  tagString = tagName;
39118
39269
  }
39119
39270
 
39120
- var element = this.dom.createElement(tagString, this._contextualElement);
39271
+ var element = this.dom.createElement(tagString, this.outerContextualElement());
39121
39272
  var $element = jQuery(element);
39122
39273
 
39123
39274
  if (id) {
@@ -39171,37 +39322,24 @@ define("ember-views/system/render_buffer",
39171
39322
  of this buffer
39172
39323
  */
39173
39324
  element: function() {
39174
- if (!this._contextualElement) {
39175
- Ember.deprecate("buffer.element expects a contextualElement to exist. This ensures DOM that requires context is correctly generated (tr, SVG tags). Defaulting to document.body, but this will be removed in the future");
39176
- this._contextualElement = document.body;
39325
+ var content = this.innerContent();
39326
+ if (content === null) {
39327
+ return this._element;
39177
39328
  }
39178
- var html = this.innerString();
39179
39329
 
39180
- var nodes;
39181
- if (this._element) {
39182
- if (html) {
39183
- this.dom.detectNamespace(this._element);
39184
- nodes = this.dom.parseHTML(html, this._element);
39185
- while (nodes[0]) {
39186
- this._element.appendChild(nodes[0]);
39187
- }
39188
- this.hydrateMorphs(this._element);
39189
- }
39190
- } else {
39191
- if (html) {
39192
- var omittedStartTag = detectOmittedStartTag(html, this._contextualElement);
39193
- var contextualElement = omittedStartTag || this._contextualElement;
39194
- this.dom.detectNamespace(contextualElement);
39195
- nodes = this.dom.parseHTML(html, contextualElement);
39196
- var frag = this._element = document.createDocumentFragment();
39197
- while (nodes[0]) {
39198
- frag.appendChild(nodes[0]);
39199
- }
39200
- this.hydrateMorphs(contextualElement);
39201
- } else if (html === '') {
39202
- this._element = html;
39203
- }
39330
+ var contextualElement = this.innerContextualElement(content);
39331
+ this.dom.detectNamespace(contextualElement);
39332
+
39333
+ if (!this._element) {
39334
+ this._element = document.createDocumentFragment();
39204
39335
  }
39336
+
39337
+ var nodes = this.dom.parseHTML(content, contextualElement);
39338
+ while (nodes[0]) {
39339
+ this._element.appendChild(nodes[0]);
39340
+ }
39341
+ this.hydrateMorphs(contextualElement);
39342
+
39205
39343
  return this._element;
39206
39344
  },
39207
39345
 
@@ -39225,12 +39363,44 @@ define("ember-views/system/render_buffer",
39225
39363
  }
39226
39364
  },
39227
39365
 
39366
+ outerContextualElement: function() {
39367
+ if (!this._outerContextualElement) {
39368
+ Ember.deprecate("The render buffer expects an outer contextualElement to exist." +
39369
+ " This ensures DOM that requires context is correctly generated (tr, SVG tags)." +
39370
+ " Defaulting to document.body, but this will be removed in the future");
39371
+ this.outerContextualElement = document.body;
39372
+ }
39373
+ return this._outerContextualElement;
39374
+ },
39375
+
39376
+ innerContextualElement: function(html) {
39377
+ var innerContextualElement;
39378
+ if (this._element && this._element.nodeType === 1) {
39379
+ innerContextualElement = this._element;
39380
+ } else {
39381
+ innerContextualElement = this.outerContextualElement();
39382
+ }
39383
+
39384
+ var omittedStartTag;
39385
+ if (html) {
39386
+ omittedStartTag = detectOmittedStartTag(html, innerContextualElement);
39387
+ }
39388
+ return omittedStartTag || innerContextualElement;
39389
+ },
39390
+
39228
39391
  innerString: function() {
39392
+ var content = this.innerContent();
39393
+ if (content && !content.nodeType) {
39394
+ return content;
39395
+ }
39396
+ },
39397
+
39398
+ innerContent: function() {
39229
39399
  return this.buffer;
39230
39400
  }
39231
39401
  };
39232
39402
  });
39233
- define("ember-views/system/renderer",
39403
+ enifed("ember-views/system/renderer",
39234
39404
  ["ember-metal-views/renderer","ember-metal/platform","ember-views/system/render_buffer","ember-metal/run_loop","ember-metal/property_set","ember-metal/instrumentation","exports"],
39235
39405
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) {
39236
39406
  "use strict";
@@ -39396,7 +39566,7 @@ define("ember-views/system/renderer",
39396
39566
 
39397
39567
  __exports__["default"] = EmberRenderer;
39398
39568
  });
39399
- define("ember-views/system/utils",
39569
+ enifed("ember-views/system/utils",
39400
39570
  ["exports"],
39401
39571
  function(__exports__) {
39402
39572
  "use strict";
@@ -39414,7 +39584,7 @@ define("ember-views/system/utils",
39414
39584
 
39415
39585
  __exports__.isSimpleClick = isSimpleClick;
39416
39586
  });
39417
- define("ember-views/views/collection_view",
39587
+ enifed("ember-views/views/collection_view",
39418
39588
  ["ember-metal/core","ember-metal/platform","ember-metal/binding","ember-metal/merge","ember-metal/property_get","ember-metal/property_set","ember-runtime/system/string","ember-views/views/container_view","ember-views/views/core_view","ember-views/views/view","ember-metal/mixin","ember-handlebars/ext","ember-runtime/mixins/array","exports"],
39419
39589
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __exports__) {
39420
39590
  "use strict";
@@ -39855,7 +40025,7 @@ define("ember-views/views/collection_view",
39855
40025
 
39856
40026
  __exports__["default"] = CollectionView;
39857
40027
  });
39858
- define("ember-views/views/component",
40028
+ enifed("ember-views/views/component",
39859
40029
  ["ember-metal/core","ember-views/mixins/component_template_deprecation","ember-runtime/mixins/target_action_support","ember-views/views/view","ember-metal/property_get","ember-metal/property_set","ember-metal/is_none","ember-metal/computed","exports"],
39860
40030
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
39861
40031
  "use strict";
@@ -40173,7 +40343,7 @@ define("ember-views/views/component",
40173
40343
 
40174
40344
  __exports__["default"] = Component;
40175
40345
  });
40176
- define("ember-views/views/container_view",
40346
+ enifed("ember-views/views/container_view",
40177
40347
  ["ember-metal/core","ember-metal/merge","ember-runtime/mixins/mutable_array","ember-metal/property_get","ember-metal/property_set","ember-views/views/view","ember-views/views/states","ember-metal/error","ember-metal/enumerable_utils","ember-metal/computed","ember-metal/run_loop","ember-metal/properties","ember-views/system/render_buffer","ember-metal/mixin","ember-runtime/system/native_array","exports"],
40178
40348
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __exports__) {
40179
40349
  "use strict";
@@ -40572,7 +40742,7 @@ define("ember-views/views/container_view",
40572
40742
 
40573
40743
  __exports__["default"] = ContainerView;
40574
40744
  });
40575
- define("ember-views/views/core_view",
40745
+ enifed("ember-views/views/core_view",
40576
40746
  ["ember-views/system/renderer","ember-views/views/states","ember-runtime/system/object","ember-runtime/mixins/evented","ember-runtime/mixins/action_handler","ember-metal/property_get","ember-metal/property_set","ember-metal/computed","ember-metal/utils","ember-metal/instrumentation","exports"],
40577
40747
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __exports__) {
40578
40748
  "use strict";
@@ -40715,7 +40885,7 @@ define("ember-views/views/core_view",
40715
40885
 
40716
40886
  __exports__["default"] = CoreView;
40717
40887
  });
40718
- define("ember-views/views/states",
40888
+ enifed("ember-views/views/states",
40719
40889
  ["ember-metal/platform","ember-metal/merge","ember-views/views/states/default","ember-views/views/states/pre_render","ember-views/views/states/in_buffer","ember-views/views/states/has_element","ember-views/views/states/in_dom","ember-views/views/states/destroying","exports"],
40720
40890
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
40721
40891
  "use strict";
@@ -40756,7 +40926,7 @@ define("ember-views/views/states",
40756
40926
  };
40757
40927
  __exports__.states = states;
40758
40928
  });
40759
- define("ember-views/views/states/default",
40929
+ enifed("ember-views/views/states/default",
40760
40930
  ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/run_loop","ember-metal/error","exports"],
40761
40931
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
40762
40932
  "use strict";
@@ -40800,7 +40970,7 @@ define("ember-views/views/states/default",
40800
40970
  invokeObserver: Ember.K
40801
40971
  };
40802
40972
  });
40803
- define("ember-views/views/states/destroying",
40973
+ enifed("ember-views/views/states/destroying",
40804
40974
  ["ember-metal/merge","ember-metal/platform","ember-runtime/system/string","ember-views/views/states/default","ember-metal/error","exports"],
40805
40975
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
40806
40976
  "use strict";
@@ -40832,7 +41002,7 @@ define("ember-views/views/states/destroying",
40832
41002
 
40833
41003
  __exports__["default"] = destroying;
40834
41004
  });
40835
- define("ember-views/views/states/has_element",
41005
+ enifed("ember-views/views/states/has_element",
40836
41006
  ["ember-views/views/states/default","ember-metal/run_loop","ember-metal/merge","ember-metal/platform","ember-views/system/jquery","ember-metal/error","ember-metal/property_get","ember-metal/property_set","exports"],
40837
41007
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
40838
41008
  "use strict";
@@ -40906,7 +41076,7 @@ define("ember-views/views/states/has_element",
40906
41076
 
40907
41077
  __exports__["default"] = hasElement;
40908
41078
  });
40909
- define("ember-views/views/states/in_buffer",
41079
+ enifed("ember-views/views/states/in_buffer",
40910
41080
  ["ember-views/views/states/default","ember-metal/error","ember-metal/core","ember-metal/platform","ember-metal/merge","exports"],
40911
41081
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
40912
41082
  "use strict";
@@ -40968,7 +41138,7 @@ define("ember-views/views/states/in_buffer",
40968
41138
 
40969
41139
  __exports__["default"] = inBuffer;
40970
41140
  });
40971
- define("ember-views/views/states/in_dom",
41141
+ enifed("ember-views/views/states/in_dom",
40972
41142
  ["ember-metal/core","ember-metal/platform","ember-metal/merge","ember-metal/error","ember-views/views/states/has_element","exports"],
40973
41143
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) {
40974
41144
  "use strict";
@@ -41013,7 +41183,7 @@ define("ember-views/views/states/in_dom",
41013
41183
 
41014
41184
  __exports__["default"] = inDOM;
41015
41185
  });
41016
- define("ember-views/views/states/pre_render",
41186
+ enifed("ember-views/views/states/pre_render",
41017
41187
  ["ember-views/views/states/default","ember-metal/platform","ember-metal/merge","ember-views/system/jquery","exports"],
41018
41188
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
41019
41189
  "use strict";
@@ -41030,7 +41200,7 @@ define("ember-views/views/states/pre_render",
41030
41200
 
41031
41201
  __exports__["default"] = preRender;
41032
41202
  });
41033
- define("ember-views/views/view",
41203
+ enifed("ember-views/views/view",
41034
41204
  ["ember-metal/core","ember-runtime/mixins/evented","ember-runtime/system/object","ember-metal/error","ember-metal/property_get","ember-metal/property_set","ember-metal/set_properties","ember-metal/run_loop","ember-metal/observer","ember-metal/properties","ember-metal/utils","ember-metal/computed","ember-metal/mixin","ember-metal/is_none","ember-metal/deprecate_property","ember-runtime/system/native_array","ember-runtime/system/string","ember-metal/enumerable_utils","ember-runtime/copy","ember-metal/binding","ember-metal/property_events","ember-views/system/jquery","ember-views/system/ext","ember-views/views/core_view","exports"],
41035
41205
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __dependency19__, __dependency20__, __dependency21__, __dependency22__, __dependency23__, __dependency24__, __exports__) {
41036
41206
  "use strict";
@@ -43213,7 +43383,7 @@ define("ember-views/views/view",
43213
43383
 
43214
43384
  __exports__["default"] = View;
43215
43385
  });
43216
- define("ember",
43386
+ enifed("ember",
43217
43387
  ["ember-metal","ember-runtime","ember-handlebars","ember-views","ember-routing","ember-routing-handlebars","ember-application","ember-extension-support"],
43218
43388
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__) {
43219
43389
  "use strict";
@@ -43235,7 +43405,7 @@ define("ember",
43235
43405
 
43236
43406
  Ember.deprecate('Usage of Ember is deprecated for Internet Explorer 6 and 7, support will be removed in the next major version.', !navigator.userAgent.match(/MSIE [67]/));
43237
43407
  });
43238
- define("morph",
43408
+ enifed("morph",
43239
43409
  ["./morph/morph","./morph/dom-helper","exports"],
43240
43410
  function(__dependency1__, __dependency2__, __exports__) {
43241
43411
  "use strict";
@@ -43246,7 +43416,7 @@ define("morph",
43246
43416
  var DOMHelper;
43247
43417
  __exports__.DOMHelper = DOMHelper;
43248
43418
  });
43249
- define("morph/dom-helper",
43419
+ enifed("morph/dom-helper",
43250
43420
  ["../morph/morph","./dom-helper/build-html-dom","exports"],
43251
43421
  function(__dependency1__, __dependency2__, __exports__) {
43252
43422
  "use strict";
@@ -43493,7 +43663,7 @@ define("morph/dom-helper",
43493
43663
 
43494
43664
  __exports__["default"] = DOMHelper;
43495
43665
  });
43496
- define("morph/dom-helper/build-html-dom",
43666
+ enifed("morph/dom-helper/build-html-dom",
43497
43667
  ["exports"],
43498
43668
  function(__exports__) {
43499
43669
  "use strict";
@@ -43501,11 +43671,12 @@ define("morph/dom-helper/build-html-dom",
43501
43671
  __exports__.svgHTMLIntegrationPoints = svgHTMLIntegrationPoints;var svgNamespace = 'http://www.w3.org/2000/svg';
43502
43672
  __exports__.svgNamespace = svgNamespace;
43503
43673
  // Safari does not like using innerHTML on SVG HTML integration
43504
- // points.
43674
+ // points (desc/title/foreignObject).
43505
43675
  var needsIntegrationPointFix = document.createElementNS && (function() {
43506
- var testEl = document.createElementNS(svgNamespace, 'foreignObject');
43676
+ // In FF title will not accept innerHTML.
43677
+ var testEl = document.createElementNS(svgNamespace, 'title');
43507
43678
  testEl.innerHTML = "<div></div>";
43508
- return testEl.childNodes.length === 0;
43679
+ return testEl.childNodes.length === 0 || testEl.childNodes[0].nodeType !== 1;
43509
43680
  })();
43510
43681
 
43511
43682
  // Internet Explorer prior to 9 does not allow setting innerHTML if the first element
@@ -43551,8 +43722,6 @@ define("morph/dom-helper/build-html-dom",
43551
43722
  thead: ['table'],
43552
43723
  tr: ['table', 'tbody']
43553
43724
  };
43554
- } else {
43555
- tagNamesRequiringInnerHTMLFix = {};
43556
43725
  }
43557
43726
 
43558
43727
  // IE 8 doesn't allow setting innerHTML on a select tag. Detect this and
@@ -43561,6 +43730,7 @@ define("morph/dom-helper/build-html-dom",
43561
43730
  var selectInnerHTMLTestElement = document.createElement('select');
43562
43731
  selectInnerHTMLTestElement.innerHTML = '<option></option>';
43563
43732
  if (selectInnerHTMLTestElement) {
43733
+ tagNamesRequiringInnerHTMLFix = tagNamesRequiringInnerHTMLFix || {};
43564
43734
  tagNamesRequiringInnerHTMLFix.select = [];
43565
43735
  }
43566
43736
 
@@ -43643,10 +43813,9 @@ define("morph/dom-helper/build-html-dom",
43643
43813
  }
43644
43814
 
43645
43815
 
43646
- var buildHTMLDOM;
43647
- // Really, this just means IE8 and IE9 get a slower buildHTMLDOM
43648
- if (tagNamesRequiringInnerHTMLFix.length > 0 || movesWhitespace) {
43649
- buildHTMLDOM = function buildHTMLDOM(html, contextualElement, dom) {
43816
+ var buildIESafeDOM;
43817
+ if (tagNamesRequiringInnerHTMLFix || movesWhitespace) {
43818
+ buildIESafeDOM = function buildIESafeDOM(html, contextualElement, dom) {
43650
43819
  // Make a list of the leading text on script nodes. Include
43651
43820
  // script tags without any whitespace for easier processing later.
43652
43821
  var spacesBefore = [];
@@ -43689,7 +43858,7 @@ define("morph/dom-helper/build-html-dom",
43689
43858
  }
43690
43859
 
43691
43860
  // Walk the script tags and put back their leading text nodes.
43692
- var textNode, spaceBefore, spaceAfter;
43861
+ var scriptNode, textNode, spaceBefore, spaceAfter;
43693
43862
  for (i=0;scriptNode=scriptNodes[i];i++) {
43694
43863
  spaceBefore = spacesBefore[i];
43695
43864
  if (spaceBefore && spaceBefore.length > 0) {
@@ -43706,21 +43875,26 @@ define("morph/dom-helper/build-html-dom",
43706
43875
 
43707
43876
  return nodes;
43708
43877
  };
43709
- } else if (needsIntegrationPointFix) {
43878
+ } else {
43879
+ buildIESafeDOM = buildDOM;
43880
+ }
43881
+
43882
+ var buildHTMLDOM;
43883
+ if (needsIntegrationPointFix) {
43710
43884
  buildHTMLDOM = function buildHTMLDOM(html, contextualElement, dom){
43711
43885
  if (svgHTMLIntegrationPoints[contextualElement.tagName]) {
43712
- return buildDOM(html, document.createElement('div'), dom);
43886
+ return buildIESafeDOM(html, document.createElement('div'), dom);
43713
43887
  } else {
43714
- return buildDOM(html, contextualElement, dom);
43888
+ return buildIESafeDOM(html, contextualElement, dom);
43715
43889
  }
43716
43890
  };
43717
43891
  } else {
43718
- buildHTMLDOM = buildDOM;
43892
+ buildHTMLDOM = buildIESafeDOM;
43719
43893
  }
43720
43894
 
43721
43895
  __exports__.buildHTMLDOM = buildHTMLDOM;
43722
43896
  });
43723
- define("morph/morph",
43897
+ enifed("morph/morph",
43724
43898
  ["exports"],
43725
43899
  function(__exports__) {
43726
43900
  "use strict";
@@ -44001,7 +44175,7 @@ define("morph/morph",
44001
44175
 
44002
44176
  __exports__["default"] = Morph;
44003
44177
  });
44004
- define("route-recognizer",
44178
+ enifed("route-recognizer",
44005
44179
  ["route-recognizer/dsl","exports"],
44006
44180
  function(__dependency1__, __exports__) {
44007
44181
  "use strict";
@@ -44534,7 +44708,7 @@ define("route-recognizer",
44534
44708
 
44535
44709
  __exports__["default"] = RouteRecognizer;
44536
44710
  });
44537
- define("route-recognizer/dsl",
44711
+ enifed("route-recognizer/dsl",
44538
44712
  ["exports"],
44539
44713
  function(__exports__) {
44540
44714
  "use strict";
@@ -44638,7 +44812,7 @@ define("route-recognizer/dsl",
44638
44812
  }, this);
44639
44813
  }
44640
44814
  });
44641
- define("router",
44815
+ enifed("router",
44642
44816
  ["./router/router","exports"],
44643
44817
  function(__dependency1__, __exports__) {
44644
44818
  "use strict";
@@ -44646,7 +44820,7 @@ define("router",
44646
44820
 
44647
44821
  __exports__["default"] = Router;
44648
44822
  });
44649
- define("router/handler-info",
44823
+ enifed("router/handler-info",
44650
44824
  ["./utils","rsvp/promise","exports"],
44651
44825
  function(__dependency1__, __dependency2__, __exports__) {
44652
44826
  "use strict";
@@ -44823,7 +44997,7 @@ define("router/handler-info",
44823
44997
 
44824
44998
  __exports__["default"] = HandlerInfo;
44825
44999
  });
44826
- define("router/handler-info/factory",
45000
+ enifed("router/handler-info/factory",
44827
45001
  ["router/handler-info/resolved-handler-info","router/handler-info/unresolved-handler-info-by-object","router/handler-info/unresolved-handler-info-by-param","exports"],
44828
45002
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
44829
45003
  "use strict";
@@ -44846,7 +45020,7 @@ define("router/handler-info/factory",
44846
45020
 
44847
45021
  __exports__["default"] = handlerInfoFactory;
44848
45022
  });
44849
- define("router/handler-info/resolved-handler-info",
45023
+ enifed("router/handler-info/resolved-handler-info",
44850
45024
  ["../handler-info","router/utils","rsvp/promise","exports"],
44851
45025
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
44852
45026
  "use strict";
@@ -44877,7 +45051,7 @@ define("router/handler-info/resolved-handler-info",
44877
45051
 
44878
45052
  __exports__["default"] = ResolvedHandlerInfo;
44879
45053
  });
44880
- define("router/handler-info/unresolved-handler-info-by-object",
45054
+ enifed("router/handler-info/unresolved-handler-info-by-object",
44881
45055
  ["../handler-info","router/utils","rsvp/promise","exports"],
44882
45056
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
44883
45057
  "use strict";
@@ -44939,7 +45113,7 @@ define("router/handler-info/unresolved-handler-info-by-object",
44939
45113
 
44940
45114
  __exports__["default"] = UnresolvedHandlerInfoByObject;
44941
45115
  });
44942
- define("router/handler-info/unresolved-handler-info-by-param",
45116
+ enifed("router/handler-info/unresolved-handler-info-by-param",
44943
45117
  ["../handler-info","router/utils","exports"],
44944
45118
  function(__dependency1__, __dependency2__, __exports__) {
44945
45119
  "use strict";
@@ -44973,7 +45147,7 @@ define("router/handler-info/unresolved-handler-info-by-param",
44973
45147
 
44974
45148
  __exports__["default"] = UnresolvedHandlerInfoByParam;
44975
45149
  });
44976
- define("router/router",
45150
+ enifed("router/router",
44977
45151
  ["route-recognizer","rsvp/promise","./utils","./transition-state","./transition","./transition-intent/named-transition-intent","./transition-intent/url-transition-intent","./handler-info","exports"],
44978
45152
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
44979
45153
  "use strict";
@@ -45794,7 +45968,7 @@ define("router/router",
45794
45968
 
45795
45969
  __exports__["default"] = Router;
45796
45970
  });
45797
- define("router/transition-intent",
45971
+ enifed("router/transition-intent",
45798
45972
  ["./utils","exports"],
45799
45973
  function(__dependency1__, __exports__) {
45800
45974
  "use strict";
@@ -45814,7 +45988,7 @@ define("router/transition-intent",
45814
45988
 
45815
45989
  __exports__["default"] = TransitionIntent;
45816
45990
  });
45817
- define("router/transition-intent/named-transition-intent",
45991
+ enifed("router/transition-intent/named-transition-intent",
45818
45992
  ["../transition-intent","../transition-state","../handler-info/factory","../utils","exports"],
45819
45993
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
45820
45994
  "use strict";
@@ -46015,7 +46189,7 @@ define("router/transition-intent/named-transition-intent",
46015
46189
  }
46016
46190
  });
46017
46191
  });
46018
- define("router/transition-intent/url-transition-intent",
46192
+ enifed("router/transition-intent/url-transition-intent",
46019
46193
  ["../transition-intent","../transition-state","../handler-info/factory","../utils","exports"],
46020
46194
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
46021
46195
  "use strict";
@@ -46085,7 +46259,7 @@ define("router/transition-intent/url-transition-intent",
46085
46259
  this.name = "UnrecognizedURLError";
46086
46260
  }
46087
46261
  });
46088
- define("router/transition-state",
46262
+ enifed("router/transition-state",
46089
46263
  ["./handler-info","./utils","rsvp/promise","exports"],
46090
46264
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
46091
46265
  "use strict";
@@ -46201,7 +46375,7 @@ define("router/transition-state",
46201
46375
 
46202
46376
  __exports__["default"] = TransitionState;
46203
46377
  });
46204
- define("router/transition",
46378
+ enifed("router/transition",
46205
46379
  ["rsvp/promise","./handler-info","./utils","exports"],
46206
46380
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
46207
46381
  "use strict";
@@ -46512,7 +46686,7 @@ define("router/transition",
46512
46686
  __exports__.logAbort = logAbort;
46513
46687
  __exports__.TransitionAborted = TransitionAborted;
46514
46688
  });
46515
- define("router/utils",
46689
+ enifed("router/utils",
46516
46690
  ["exports"],
46517
46691
  function(__exports__) {
46518
46692
  "use strict";
@@ -46731,7 +46905,7 @@ define("router/utils",
46731
46905
  __exports__.resolveHook = resolveHook;
46732
46906
  __exports__.applyHook = applyHook;
46733
46907
  });
46734
- define("rsvp",
46908
+ enifed("rsvp",
46735
46909
  ["./rsvp/promise","./rsvp/events","./rsvp/node","./rsvp/all","./rsvp/all-settled","./rsvp/race","./rsvp/hash","./rsvp/hash-settled","./rsvp/rethrow","./rsvp/defer","./rsvp/config","./rsvp/map","./rsvp/resolve","./rsvp/reject","./rsvp/filter","./rsvp/asap","exports"],
46736
46910
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __exports__) {
46737
46911
  "use strict";
@@ -46798,7 +46972,7 @@ define("rsvp",
46798
46972
  __exports__.map = map;
46799
46973
  __exports__.filter = filter;
46800
46974
  });
46801
- define("rsvp.umd",
46975
+ enifed("rsvp.umd",
46802
46976
  ["./rsvp"],
46803
46977
  function(__dependency1__) {
46804
46978
  "use strict";
@@ -46843,15 +47017,15 @@ define("rsvp.umd",
46843
47017
  };
46844
47018
 
46845
47019
  /* global define:true module:true window: true */
46846
- if (typeof define === 'function' && define['amd']) {
46847
- define(function() { return RSVP; });
47020
+ if (typeof enifed === 'function' && enifed['amd']) {
47021
+ enifed(function() { return RSVP; });
46848
47022
  } else if (typeof module !== 'undefined' && module['exports']) {
46849
47023
  module['exports'] = RSVP;
46850
47024
  } else if (typeof this !== 'undefined') {
46851
47025
  this['RSVP'] = RSVP;
46852
47026
  }
46853
47027
  });
46854
- define("rsvp/-internal",
47028
+ enifed("rsvp/-internal",
46855
47029
  ["./utils","./instrument","./config","exports"],
46856
47030
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
46857
47031
  "use strict";
@@ -47112,7 +47286,7 @@ define("rsvp/-internal",
47112
47286
  __exports__.REJECTED = REJECTED;
47113
47287
  __exports__.PENDING = PENDING;
47114
47288
  });
47115
- define("rsvp/all-settled",
47289
+ enifed("rsvp/all-settled",
47116
47290
  ["./enumerator","./promise","./utils","exports"],
47117
47291
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
47118
47292
  "use strict";
@@ -47188,7 +47362,7 @@ define("rsvp/all-settled",
47188
47362
  return new AllSettled(Promise, entries, label).promise;
47189
47363
  }
47190
47364
  });
47191
- define("rsvp/all",
47365
+ enifed("rsvp/all",
47192
47366
  ["./promise","exports"],
47193
47367
  function(__dependency1__, __exports__) {
47194
47368
  "use strict";
@@ -47208,7 +47382,7 @@ define("rsvp/all",
47208
47382
  return Promise.all(array, label);
47209
47383
  }
47210
47384
  });
47211
- define("rsvp/asap",
47385
+ enifed("rsvp/asap",
47212
47386
  ["exports"],
47213
47387
  function(__exports__) {
47214
47388
  "use strict";
@@ -47292,7 +47466,7 @@ define("rsvp/asap",
47292
47466
 
47293
47467
  function attemptVertex() {
47294
47468
  try {
47295
- var vertx = require('vertx');
47469
+ var vertx = eriuqer('vertx');
47296
47470
  var vertxNext = vertx.runOnLoop || vertx.runOnContext;
47297
47471
  return useVertxTimer();
47298
47472
  } catch(e) {
@@ -47308,13 +47482,13 @@ define("rsvp/asap",
47308
47482
  scheduleFlush = useMutationObserver();
47309
47483
  } else if (isWorker) {
47310
47484
  scheduleFlush = useMessageChannel();
47311
- } else if (browserWindow === undefined && typeof require === 'function') {
47485
+ } else if (browserWindow === undefined && typeof eriuqer === 'function') {
47312
47486
  scheduleFlush = attemptVertex();
47313
47487
  } else {
47314
47488
  scheduleFlush = useSetTimeout();
47315
47489
  }
47316
47490
  });
47317
- define("rsvp/config",
47491
+ enifed("rsvp/config",
47318
47492
  ["./events","exports"],
47319
47493
  function(__dependency1__, __exports__) {
47320
47494
  "use strict";
@@ -47345,7 +47519,7 @@ define("rsvp/config",
47345
47519
  __exports__.config = config;
47346
47520
  __exports__.configure = configure;
47347
47521
  });
47348
- define("rsvp/defer",
47522
+ enifed("rsvp/defer",
47349
47523
  ["./promise","exports"],
47350
47524
  function(__dependency1__, __exports__) {
47351
47525
  "use strict";
@@ -47395,7 +47569,7 @@ define("rsvp/defer",
47395
47569
  return deferred;
47396
47570
  }
47397
47571
  });
47398
- define("rsvp/enumerator",
47572
+ enifed("rsvp/enumerator",
47399
47573
  ["./utils","./-internal","exports"],
47400
47574
  function(__dependency1__, __dependency2__, __exports__) {
47401
47575
  "use strict";
@@ -47521,7 +47695,7 @@ define("rsvp/enumerator",
47521
47695
  });
47522
47696
  };
47523
47697
  });
47524
- define("rsvp/events",
47698
+ enifed("rsvp/events",
47525
47699
  ["exports"],
47526
47700
  function(__exports__) {
47527
47701
  "use strict";
@@ -47727,7 +47901,7 @@ define("rsvp/events",
47727
47901
  }
47728
47902
  };
47729
47903
  });
47730
- define("rsvp/filter",
47904
+ enifed("rsvp/filter",
47731
47905
  ["./promise","./utils","exports"],
47732
47906
  function(__dependency1__, __dependency2__, __exports__) {
47733
47907
  "use strict";
@@ -47850,7 +48024,7 @@ define("rsvp/filter",
47850
48024
  });
47851
48025
  }
47852
48026
  });
47853
- define("rsvp/hash-settled",
48027
+ enifed("rsvp/hash-settled",
47854
48028
  ["./promise","./enumerator","./promise-hash","./utils","exports"],
47855
48029
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) {
47856
48030
  "use strict";
@@ -47977,7 +48151,7 @@ define("rsvp/hash-settled",
47977
48151
  return new HashSettled(Promise, object, label).promise;
47978
48152
  }
47979
48153
  });
47980
- define("rsvp/hash",
48154
+ enifed("rsvp/hash",
47981
48155
  ["./promise","./promise-hash","exports"],
47982
48156
  function(__dependency1__, __dependency2__, __exports__) {
47983
48157
  "use strict";
@@ -48076,7 +48250,7 @@ define("rsvp/hash",
48076
48250
  return new PromiseHash(Promise, object, label).promise;
48077
48251
  }
48078
48252
  });
48079
- define("rsvp/instrument",
48253
+ enifed("rsvp/instrument",
48080
48254
  ["./config","./utils","exports"],
48081
48255
  function(__dependency1__, __dependency2__, __exports__) {
48082
48256
  "use strict";
@@ -48122,7 +48296,7 @@ define("rsvp/instrument",
48122
48296
  }
48123
48297
  }
48124
48298
  });
48125
- define("rsvp/map",
48299
+ enifed("rsvp/map",
48126
48300
  ["./promise","./utils","exports"],
48127
48301
  function(__dependency1__, __dependency2__, __exports__) {
48128
48302
  "use strict";
@@ -48224,7 +48398,7 @@ define("rsvp/map",
48224
48398
  });
48225
48399
  }
48226
48400
  });
48227
- define("rsvp/node",
48401
+ enifed("rsvp/node",
48228
48402
  ["./promise","./-internal","./utils","exports"],
48229
48403
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
48230
48404
  "use strict";
@@ -48508,7 +48682,7 @@ define("rsvp/node",
48508
48682
  }
48509
48683
  }
48510
48684
  });
48511
- define("rsvp/promise-hash",
48685
+ enifed("rsvp/promise-hash",
48512
48686
  ["./enumerator","./-internal","./utils","exports"],
48513
48687
  function(__dependency1__, __dependency2__, __dependency3__, __exports__) {
48514
48688
  "use strict";
@@ -48560,7 +48734,7 @@ define("rsvp/promise-hash",
48560
48734
  }
48561
48735
  };
48562
48736
  });
48563
- define("rsvp/promise",
48737
+ enifed("rsvp/promise",
48564
48738
  ["./config","./instrument","./utils","./-internal","./promise/all","./promise/race","./promise/resolve","./promise/reject","exports"],
48565
48739
  function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) {
48566
48740
  "use strict";
@@ -49049,7 +49223,7 @@ define("rsvp/promise",
49049
49223
  }
49050
49224
  };
49051
49225
  });
49052
- define("rsvp/promise/all",
49226
+ enifed("rsvp/promise/all",
49053
49227
  ["../enumerator","exports"],
49054
49228
  function(__dependency1__, __exports__) {
49055
49229
  "use strict";
@@ -49106,7 +49280,7 @@ define("rsvp/promise/all",
49106
49280
  return new Enumerator(this, entries, true /* abort on reject */, label).promise;
49107
49281
  }
49108
49282
  });
49109
- define("rsvp/promise/race",
49283
+ enifed("rsvp/promise/race",
49110
49284
  ["../utils","../-internal","exports"],
49111
49285
  function(__dependency1__, __dependency2__, __exports__) {
49112
49286
  "use strict";
@@ -49212,7 +49386,7 @@ define("rsvp/promise/race",
49212
49386
  return promise;
49213
49387
  }
49214
49388
  });
49215
- define("rsvp/promise/reject",
49389
+ enifed("rsvp/promise/reject",
49216
49390
  ["../-internal","exports"],
49217
49391
  function(__dependency1__, __exports__) {
49218
49392
  "use strict";
@@ -49262,7 +49436,7 @@ define("rsvp/promise/reject",
49262
49436
  return promise;
49263
49437
  }
49264
49438
  });
49265
- define("rsvp/promise/resolve",
49439
+ enifed("rsvp/promise/resolve",
49266
49440
  ["../-internal","exports"],
49267
49441
  function(__dependency1__, __exports__) {
49268
49442
  "use strict";
@@ -49314,7 +49488,7 @@ define("rsvp/promise/resolve",
49314
49488
  return promise;
49315
49489
  }
49316
49490
  });
49317
- define("rsvp/race",
49491
+ enifed("rsvp/race",
49318
49492
  ["./promise","exports"],
49319
49493
  function(__dependency1__, __exports__) {
49320
49494
  "use strict";
@@ -49334,7 +49508,7 @@ define("rsvp/race",
49334
49508
  return Promise.race(array, label);
49335
49509
  }
49336
49510
  });
49337
- define("rsvp/reject",
49511
+ enifed("rsvp/reject",
49338
49512
  ["./promise","exports"],
49339
49513
  function(__dependency1__, __exports__) {
49340
49514
  "use strict";
@@ -49355,7 +49529,7 @@ define("rsvp/reject",
49355
49529
  return Promise.reject(reason, label);
49356
49530
  }
49357
49531
  });
49358
- define("rsvp/resolve",
49532
+ enifed("rsvp/resolve",
49359
49533
  ["./promise","exports"],
49360
49534
  function(__dependency1__, __exports__) {
49361
49535
  "use strict";
@@ -49377,7 +49551,7 @@ define("rsvp/resolve",
49377
49551
  return Promise.resolve(value, label);
49378
49552
  }
49379
49553
  });
49380
- define("rsvp/rethrow",
49554
+ enifed("rsvp/rethrow",
49381
49555
  ["exports"],
49382
49556
  function(__exports__) {
49383
49557
  "use strict";
@@ -49428,7 +49602,7 @@ define("rsvp/rethrow",
49428
49602
  throw reason;
49429
49603
  }
49430
49604
  });
49431
- define("rsvp/utils",
49605
+ enifed("rsvp/utils",
49432
49606
  ["exports"],
49433
49607
  function(__exports__) {
49434
49608
  "use strict";