dist/ember.prod.js in ember-source-2.6.0 vs dist/ember.prod.js in ember-source-2.6.1
- old
+ new
@@ -4,11 +4,11 @@
* @copyright Copyright 2011-2016 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 2.6.0
+ * @version 2.6.1
*/
var enifed, requireModule, require, Ember;
var mainContext = this;
@@ -4367,13 +4367,12 @@
The `rootElement` can be either a DOM element or a jQuery-compatible selector
string. Note that *views appended to the DOM outside the root element will
not receive events.* If you specify a custom root element, make sure you only
append views inside it!
- To learn more about the advantages of event delegation and the Ember view
- layer, and a list of the event listeners that are setup by default, visit the
- [Ember View Layer guide](http://emberjs.com/guides/understanding-ember/the-view-layer/#toc_event-delegation).
+ To learn more about the events Ember components use, see
+ [components/handling-events](https://guides.emberjs.com/v2.6.0/components/handling-events/#toc_event-names).
### Initializers
Libraries on top of Ember can add initializers, like so:
@@ -7810,13 +7809,19 @@
}
}
// Determine if this is an initial render or a re-render.
if (state.manager) {
- var templateMeta = state.manager.block.template.meta;
+ var sm = state.manager;
+ var templateMeta = null;
+ if (sm.block) {
+ templateMeta = sm.block.template.meta;
+ } else if (sm.scope && sm.scope._view) {
+ templateMeta = sm.scope._view.template.meta;
+ }
env.meta.moduleName = templateMeta && templateMeta.moduleName || env.meta && env.meta.moduleName;
- _emberHtmlbarsUtilsExtractPositionalParams.default(renderNode, state.manager.component.constructor, params, attrs, false);
+ _emberHtmlbarsUtilsExtractPositionalParams.default(renderNode, sm.component.constructor, params, attrs, false);
state.manager.rerender(env, attrs, visitor);
return;
}
var isAngleBracket = false;
@@ -9688,11 +9693,11 @@
@submodule ember-templates
*/
'use strict';
- _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.6.0';
+ _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.6.1';
/**
The `{{outlet}}` helper lets you specify where a child route will render in
your template. An important use of the `{{outlet}}` helper is in your
application's `application.hbs` file:
@@ -14525,11 +14530,11 @@
cross-platform libraries such as jQuery. For more details, see
[Ember-Runtime](http://emberjs.com/api/modules/ember-runtime.html).
@class Ember
@static
- @version 2.6.0
+ @version 2.6.1
@public
*/
if ('undefined' === typeof Ember) {
// Create core object. Make it act like an instance of Ember.Namespace so that
@@ -14567,15 +14572,15 @@
/**
The semantic version.
@property VERSION
@type String
- @default '2.6.0'
+ @default '2.6.1'
@static
@public
*/
- Ember.VERSION = '2.6.0';
+ Ember.VERSION = '2.6.1';
/**
The hash of environment variables used to control various configuration
settings. To specify your own or override default settings, add the
desired properties to a global hash named `EmberENV` (or `ENV` for
@@ -15213,11 +15218,11 @@
} else {
target[method]();
}
} else {
if (params) {
- _emberMetalUtils.apply(target, method, params);
+ method.apply(target, params);
} else {
method.call(target);
}
}
}
@@ -16349,14 +16354,16 @@
/**
If the value passed into `Ember.Logger.assert` is not truthy it will throw an error with a stack trace.
```javascript
Ember.Logger.assert(true); // undefined
Ember.Logger.assert(true === false); // Throws an Assertion failed error.
+ Ember.Logger.assert(true === false, 'Something invalid'); // Throws an Assertion failed error with message.
```
@method assert
@for Ember.Logger
@param {Boolean} bool Value to test
+ @param {String} message Assertion message on failed
@public
*/
assert: consoleMethod('assert') || assertPolyfill
};
});
@@ -21171,11 +21178,10 @@
exports.guidFor = guidFor;
exports.wrap = wrap;
exports.tryInvoke = tryInvoke;
exports.makeArray = makeArray;
exports.inspect = inspect;
- exports.apply = apply;
exports.applyStr = applyStr;
exports.lookupDescriptor = lookupDescriptor;
exports.toString = toString;
var _uuid = 0;
@@ -21413,19 +21419,20 @@
return ret;
}
}
var HAS_SUPER_PATTERN = /\.(_super|call\(this|apply\(this)/;
+ var fnToString = Function.prototype.toString;
var checkHasSuper = (function () {
- var sourceAvailable = (function () {
+ var sourceAvailable = fnToString.call(function () {
return this;
- }).toString().indexOf('return this') > -1;
+ }).indexOf('return this') > -1;
if (sourceAvailable) {
return function checkHasSuper(func) {
- return HAS_SUPER_PATTERN.test(func.toString());
+ return HAS_SUPER_PATTERN.test(fnToString.call(func));
};
}
return function checkHasSuper() {
return true;
@@ -21468,36 +21475,12 @@
}
function _wrap(func, superFunc) {
function superWrapper() {
var orig = this._super;
- var length = arguments.length;
- var ret = undefined;
this._super = superFunc;
- switch (length) {
- case 0:
- ret = func.call(this);break;
- case 1:
- ret = func.call(this, arguments[0]);break;
- case 2:
- ret = func.call(this, arguments[0], arguments[1]);break;
- case 3:
- ret = func.call(this, arguments[0], arguments[1], arguments[2]);break;
- case 4:
- ret = func.call(this, arguments[0], arguments[1], arguments[2], arguments[3]);break;
- case 5:
- ret = func.call(this, arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);break;
- default:
- // v8 bug potentially incorrectly deopts this function: https://code.google.com/p/v8/issues/detail?id=3709
- // we may want to keep this around till this ages out on mobile
- var args = new Array(length);
- for (var x = 0; x < length; x++) {
- args[x] = arguments[x];
- }
- ret = func.apply(this, args);
- break;
- }
+ var ret = func.apply(this, arguments);
this._super = orig;
return ret;
}
superWrapper.wrappedFunction = func;
@@ -21650,42 +21633,12 @@
}
}
return '{' + ret.join(', ') + '}';
}
- // The following functions are intentionally minified to keep the functions
- // below Chrome's function body size inlining limit of 600 chars.
/**
@param {Object} t target
- @param {Function} m method
- @param {Array} a args
- @private
- */
-
- function apply(t, m, a) {
- var l = a && a.length;
- if (!a || !l) {
- return m.call(t);
- }
- switch (l) {
- case 1:
- return m.call(t, a[0]);
- case 2:
- return m.call(t, a[0], a[1]);
- case 3:
- return m.call(t, a[0], a[1], a[2]);
- case 4:
- return m.call(t, a[0], a[1], a[2], a[3]);
- case 5:
- return m.call(t, a[0], a[1], a[2], a[3], a[4]);
- default:
- return m.apply(t, a);
- }
- }
-
- /**
- @param {Object} t target
@param {String} m method
@param {Array} a args
@private
*/
@@ -25793,13 +25746,17 @@
// hierarchy so that any existing other renders that target it
// don't suddenly blow up. They will still stick themselves
// into its outlets, which won't render anywhere. All of this
// statefulness should get the machete in 2.0.
this.connections[i] = {
+ owner: connection.owner,
into: connection.into,
outlet: connection.outlet,
- name: connection.name
+ name: connection.name,
+ controller: undefined,
+ template: undefined,
+ ViewClass: undefined
};
_emberMetalRun_loop.default.once(this.router, '_setOutlets');
}
}
},
@@ -29179,11 +29136,11 @@
// __...--.'``;. ,. ;``--..__ .' ,-._ _.-'
// _..-''-------' `' `' `' O ``-''._ (,;') _,'
// ,'________________ \`-._`-','
// `._ ```````````------...___ '-.._'-:
// ```--.._ ,. ````--...__\-.
- // `.--. `-` "INFINTIY IS LESS ____ | |`
+ // `.--. `-` "INFINITY IS LESS ____ | |`
// `. `. THAN BEYOND" ,'`````. ; ;`
// `._`. __________ `. \'__/`
// `-:._____/______/___/____`. \ `
// | `._ `. \
// `._________`-. `. `.___
@@ -30287,11 +30244,11 @@
Make sure you list these dependencies so Ember knows when to update
bindings that connect to a computed property. Changing a dependency
will not immediately trigger an update of the computed property, but
will instead clear the cache so that it is updated when the next `get`
is called on the property.
- See [Ember.ComputedProperty](/api/classes/Ember.ComputedProperty.html), [Ember.computed](/api/#method_computed).
+ See [Ember.ComputedProperty](/api/classes/Ember.ComputedProperty.html), [Ember.computed](/api/classes/Ember.computed.html).
@method property
@for Function
@public
*/
FunctionPrototype.property = function () {
@@ -38170,11 +38127,11 @@
options.plugins = plugins;
options.buildMeta = function buildMeta(program) {
return {
fragmentReason: fragmentReason(program),
- revision: 'Ember@2.6.0',
+ revision: 'Ember@2.6.1',
loc: program.loc,
moduleName: options.moduleName
};
};
@@ -38590,10 +38547,10 @@
var parentView = _emberMetalProperty_get.get(this, 'parentView');
return parentView ? _emberMetalProperty_get.get(parentView, 'controller') : null;
}),
/**
- Calls a action passed to a component.
+ Calls an action passed to a component.
For example a component for playing or pausing music may translate click events
into action notifications of "play" or "stop" depending on some internal state
of the component:
```javascript
// app/components/play-button.js