dist/ember-runtime.js in ember-source-1.11.0.beta.1 vs dist/ember-runtime.js in ember-source-1.11.0.beta.2

- old
+ new

@@ -3,11 +3,11 @@ * @copyright Copyright 2011-2015 Tilde Inc. and contributors * Portions Copyright 2006-2011 Strobe Inc. * Portions Copyright 2008-2011 Apple Inc. All rights reserved. * @license Licensed under MIT license * See https://raw.github.com/emberjs/ember.js/master/LICENSE - * @version 1.11.0-beta.1 + * @version 1.11.0-beta.2 */ (function() { var enifed, requireModule, eriuqer, requirejs, Ember; var mainContext = this; @@ -1483,10 +1483,12 @@ 'use strict'; var VALID_FULL_NAME_REGEXP = /^[^:]+.+:[^:]+$/; + var instanceInitializersFeatureEnabled; + /** A lightweight registry used to store factory and option information keyed by type. A `Registry` stores the factory and option information needed by a @@ -1649,19 +1651,19 @@ } }, lookup: function(fullName, options) { - if (Ember['default'].FEATURES.isEnabled('ember-application-instance-initializers')) { + if (instanceInitializersFeatureEnabled) { } return this._defaultContainer.lookup(fullName, options); }, lookupFactory: function(fullName) { - if (Ember['default'].FEATURES.isEnabled('ember-application-instance-initializers')) { + if (instanceInitializersFeatureEnabled) { } return this._defaultContainer.lookupFactory(fullName); }, @@ -2255,16 +2257,16 @@ computed.computed.any = computed_macros.any; computed.computed.collect = computed_macros.collect; var EmberInstrumentation = Ember['default'].Instrumentation = {}; EmberInstrumentation.instrument = instrumentation.instrument; - EmberInstrumentation.subscribe = streams__utils.subscribe; - EmberInstrumentation.unsubscribe = streams__utils.unsubscribe; + EmberInstrumentation.subscribe = instrumentation.subscribe; + EmberInstrumentation.unsubscribe = instrumentation.unsubscribe; EmberInstrumentation.reset = instrumentation.reset; Ember['default'].instrument = instrumentation.instrument; - Ember['default'].subscribe = streams__utils.subscribe; + Ember['default'].subscribe = instrumentation.subscribe; Ember['default']._Cache = Cache['default']; Ember['default'].generateGuid = utils.generateGuid; Ember['default'].GUID_KEY = utils.GUID_KEY; @@ -2410,27 +2412,11 @@ Ember['default'].isBlank = isBlank['default']; Ember['default'].isPresent = isPresent['default']; Ember['default'].merge = merge['default']; - if (Ember['default'].FEATURES.isEnabled('ember-metal-stream')) { - Ember['default'].stream = { - Stream: Stream['default'], - - isStream: streams__utils.isStream, - subscribe: streams__utils.subscribe, - unsubscribe: streams__utils.unsubscribe, - read: streams__utils.read, - readHash: streams__utils.readHash, - readArray: streams__utils.readArray, - scanArray: streams__utils.scanArray, - scanHash: streams__utils.scanHash, - concat: streams__utils.concat, - chain: streams__utils.chain - }; - } - + /** A function may be assigned to `Ember.onerror` to be called when Ember internals encounter an error. This is useful for specialized error handling and reporting code. @@ -3692,31 +3678,17 @@ @extends Ember.Descriptor @constructor */ function ComputedProperty(config, opts) { this.isDescriptor = true; - if (Ember.FEATURES.isEnabled("new-computed-syntax")) { - if (typeof config === "function") { - config.__ember_arity = config.length; - this._getter = config; - if (config.__ember_arity > 1) { - this._setter = config; - } - } else { - this._getter = config.get; - this._setter = config.set; - if (this._setter && this._setter.__ember_arity === undefined) { - this._setter.__ember_arity = this._setter.length; - } - } - } else { + config.__ember_arity = config.length; this._getter = config; if (config.__ember_arity > 1) { this._setter = config; } - } + this._dependentKeys = undefined; this._suspended = undefined; this._meta = undefined; @@ -4154,18 +4126,16 @@ func = args.pop(); } var cp = new ComputedProperty(func); // jscs:disable - if (Ember.FEATURES.isEnabled("new-computed-syntax")) { - // Empty block on purpose - } else { + // jscs:enable if (typeof func !== "function") { throw new EmberError['default']("Computed Property declared without a property function"); } - } + if (args) { cp.property.apply(cp, args); } @@ -4973,11 +4943,11 @@ The core Runtime framework is based on the jQuery API with a number of performance optimizations. @class Ember @static - @version 1.11.0-beta.1 + @version 1.11.0-beta.2 */ if ('undefined' === typeof Ember) { // Create core object. Make it act like an instance of Ember.Namespace so that // objects assigned to it are given a sane string representation. @@ -5001,14 +4971,14 @@ /** @property VERSION @type String - @default '1.11.0-beta.1' + @default '1.11.0-beta.2' @static */ - Ember.VERSION = '1.11.0-beta.1'; + Ember.VERSION = '1.11.0-beta.2'; /** Standard environmental variables. You can define these in a global `EmberENV` variable before loading Ember to control various configuration settings. @@ -16083,10 +16053,10 @@ return ret; }, /** Returns an array with all of the items in the enumeration where the passed - function returns false for. This method is the inverse of filter(). + function returns true. This method is the inverse of filter(). The callback method you provide should have the following signature (all parameters are optional): ```javascript