dist/ember-runtime.js in ember-source-2.14.0 vs dist/ember-runtime.js in ember-source-2.14.1
- old
+ new
@@ -4,11 +4,11 @@
* @copyright Copyright 2011-2017 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.14.0
+ * @version 2.14.1
*/
var enifed, requireModule, Ember;
var mainContext = this; // Used in ember-environment/lib/global.js
@@ -3924,14 +3924,11 @@
meta = metaStore.get(pointer);
// jshint loopfunc:true
{
counters.peekCalls++;
}
- // stop if we find a `null` value, since
- // that means the meta was deleted
- // any other truthy value is a "real" meta
- if (meta === null || meta !== undefined) {
+ if (meta !== undefined) {
return meta;
}
pointer = getPrototypeOf(pointer);
{
@@ -3939,18 +3936,14 @@
}
}
};
} else {
setMeta = function Fallback_setMeta(obj, meta) {
- // if `null` already, just set it to the new value
- // otherwise define property first
- if (obj[META_FIELD] !== null) {
- if (obj.__defineNonEnumerable) {
- obj.__defineNonEnumerable(EMBER_META_PROPERTY);
- } else {
- Object.defineProperty(obj, META_FIELD, META_DESC);
- }
+ if (obj.__defineNonEnumerable) {
+ obj.__defineNonEnumerable(EMBER_META_PROPERTY);
+ } else {
+ Object.defineProperty(obj, META_FIELD, META_DESC);
}
obj[META_FIELD] = meta;
};
@@ -3995,10 +3988,10 @@
var maybeMeta = exports.peekMeta(obj);
var parent = void 0;
// remove this code, in-favor of explicit parent
- if (maybeMeta !== undefined && maybeMeta !== null) {
+ if (maybeMeta !== undefined) {
if (maybeMeta.source === obj) {
return maybeMeta;
}
parent = maybeMeta;
}