dist/ember-template-compiler.js in ember-source-1.13.1 vs dist/ember-template-compiler.js in ember-source-1.13.1.1
- old
+ new
@@ -150,21 +150,21 @@
@param {Boolean|Function} test Must be truthy for the assertion to pass. If
falsy, an exception will be thrown. If this is a function, it will be executed and
its return value will be used as condition.
@public
*/
- _emberMetalCore.default.assert = function (desc, test) {
+ _emberMetalCore["default"].assert = function (desc, test) {
var throwAssertion;
if (isPlainFunction(test)) {
throwAssertion = !test();
} else {
throwAssertion = !test;
}
if (throwAssertion) {
- throw new _emberMetalError.default("Assertion Failed: " + desc);
+ throw new _emberMetalError["default"]("Assertion Failed: " + desc);
}
};
/**
Display a warning with the provided message. Ember build tools will
@@ -174,15 +174,15 @@
@param {String} message A warning to display.
@param {Boolean} test An optional boolean. If falsy, the warning
will be displayed.
@public
*/
- _emberMetalCore.default.warn = function (message, test) {
+ _emberMetalCore["default"].warn = function (message, test) {
if (!test) {
- _emberMetalLogger.default.warn("WARNING: " + message);
- if ("trace" in _emberMetalLogger.default) {
- _emberMetalLogger.default.trace();
+ _emberMetalLogger["default"].warn("WARNING: " + message);
+ if ("trace" in _emberMetalLogger["default"]) {
+ _emberMetalLogger["default"].trace();
}
}
};
/**
@@ -195,12 +195,12 @@
@method debug
@param {String} message A debug message to display.
@public
*/
- _emberMetalCore.default.debug = function (message) {
- _emberMetalLogger.default.debug("DEBUG: " + message);
+ _emberMetalCore["default"].debug = function (message) {
+ _emberMetalLogger["default"].debug("DEBUG: " + message);
};
/**
Display a deprecation warning with the provided message and a stack trace
(Chrome and Firefox only). Ember build tools will remove any calls to
@@ -216,15 +216,15 @@
`id` for this deprecation. The `id` can be used by Ember debugging tools
to change the behavior (raise, log or silence) for that specific deprecation.
The `id` should be namespaced by dots, e.g. "view.helper.select".
@public
*/
- _emberMetalCore.default.deprecate = function (message, test, options) {
- if (_emberMetalCore.default.ENV.RAISE_ON_DEPRECATION) {
- _emberDebugDeprecationManager.default.setDefaultLevel(_emberDebugDeprecationManager.deprecationLevels.RAISE);
+ _emberMetalCore["default"].deprecate = function (message, test, options) {
+ if (_emberMetalCore["default"].ENV.RAISE_ON_DEPRECATION) {
+ _emberDebugDeprecationManager["default"].setDefaultLevel(_emberDebugDeprecationManager.deprecationLevels.RAISE);
}
- if (_emberDebugDeprecationManager.default.getLevel(options && options.id) === _emberDebugDeprecationManager.deprecationLevels.SILENCE) {
+ if (_emberDebugDeprecationManager["default"].getLevel(options && options.id) === _emberDebugDeprecationManager.deprecationLevels.SILENCE) {
return;
}
var noDeprecation;
@@ -240,12 +240,12 @@
if (options && options.id) {
message = message + (" [deprecation id: " + options.id + "]");
}
- if (_emberDebugDeprecationManager.default.getLevel(options && options.id) === _emberDebugDeprecationManager.deprecationLevels.RAISE) {
- throw new _emberMetalError.default(message);
+ if (_emberDebugDeprecationManager["default"].getLevel(options && options.id) === _emberDebugDeprecationManager.deprecationLevels.RAISE) {
+ throw new _emberMetalError["default"](message);
}
var error;
// When using new Error, we can't do the arguments check for Chrome. Alternatives are welcome
@@ -254,17 +254,17 @@
} catch (e) {
error = e;
}
if (arguments.length === 3) {
- _emberMetalCore.default.assert("options argument to Ember.deprecate should be an object", options && typeof options === "object");
+ _emberMetalCore["default"].assert("options argument to Ember.deprecate should be an object", options && typeof options === "object");
if (options.url) {
message += " See " + options.url + " for more details.";
}
}
- if (_emberMetalCore.default.LOG_STACKTRACE_ON_DEPRECATION && error.stack) {
+ if (_emberMetalCore["default"].LOG_STACKTRACE_ON_DEPRECATION && error.stack) {
var stack;
var stackStr = "";
if (error["arguments"]) {
// Chrome
@@ -277,11 +277,11 @@
stackStr = "\n " + stack.slice(2).join("\n ");
message = message + stackStr;
}
- _emberMetalLogger.default.warn("DEPRECATION: " + message);
+ _emberMetalLogger["default"].warn("DEPRECATION: " + message);
};
/**
Alias an old, deprecated method with its new counterpart.
@@ -299,13 +299,13 @@
@param {String} message A description of the deprecation.
@param {Function} func The new function called to replace its deprecated counterpart.
@return {Function} a new function that wrapped the original function with a deprecation warning
@private
*/
- _emberMetalCore.default.deprecateFunc = function (message, func) {
+ _emberMetalCore["default"].deprecateFunc = function (message, func) {
return function () {
- _emberMetalCore.default.deprecate(message);
+ _emberMetalCore["default"].deprecate(message);
return func.apply(this, arguments);
};
};
/**
@@ -325,11 +325,11 @@
@method runInDebug
@param {Function} func The function to be executed.
@since 1.5.0
@public
*/
- _emberMetalCore.default.runInDebug = function (func) {
+ _emberMetalCore["default"].runInDebug = function (func) {
func();
};
/**
Will call `Ember.warn()` if ENABLE_ALL_FEATURES, ENABLE_OPTIONAL_FEATURES, or
@@ -342,36 +342,36 @@
@return {void}
*/
function _warnIfUsingStrippedFeatureFlags(FEATURES, featuresWereStripped) {
if (featuresWereStripped) {
- _emberMetalCore.default.warn("Ember.ENV.ENABLE_ALL_FEATURES is only available in canary builds.", !_emberMetalCore.default.ENV.ENABLE_ALL_FEATURES);
- _emberMetalCore.default.warn("Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.", !_emberMetalCore.default.ENV.ENABLE_OPTIONAL_FEATURES);
+ _emberMetalCore["default"].warn("Ember.ENV.ENABLE_ALL_FEATURES is only available in canary builds.", !_emberMetalCore["default"].ENV.ENABLE_ALL_FEATURES);
+ _emberMetalCore["default"].warn("Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.", !_emberMetalCore["default"].ENV.ENABLE_OPTIONAL_FEATURES);
for (var key in FEATURES) {
if (FEATURES.hasOwnProperty(key) && key !== "isEnabled") {
- _emberMetalCore.default.warn("FEATURE[\"" + key + "\"] is set as enabled, but FEATURE flags are only available in canary builds.", !FEATURES[key]);
+ _emberMetalCore["default"].warn("FEATURE[\"" + key + "\"] is set as enabled, but FEATURE flags are only available in canary builds.", !FEATURES[key]);
}
}
}
}
- if (!_emberMetalCore.default.testing) {
+ if (!_emberMetalCore["default"].testing) {
// Complain if they're using FEATURE flags in builds other than canary
- _emberMetalCore.default.FEATURES["features-stripped-test"] = true;
+ _emberMetalCore["default"].FEATURES["features-stripped-test"] = true;
var featuresWereStripped = true;
- if (_emberMetalCore.default.FEATURES.isEnabled("features-stripped-test")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("features-stripped-test")) {
featuresWereStripped = false;
}
- delete _emberMetalCore.default.FEATURES["features-stripped-test"];
- _warnIfUsingStrippedFeatureFlags(_emberMetalCore.default.ENV.FEATURES, featuresWereStripped);
+ delete _emberMetalCore["default"].FEATURES["features-stripped-test"];
+ _warnIfUsingStrippedFeatureFlags(_emberMetalCore["default"].ENV.FEATURES, featuresWereStripped);
// Inform the developer about the Ember Inspector if not installed.
- var isFirefox = _emberMetalEnvironment.default.isFirefox;
- var isChrome = _emberMetalEnvironment.default.isChrome;
+ var isFirefox = _emberMetalEnvironment["default"].isFirefox;
+ var isChrome = _emberMetalEnvironment["default"].isChrome;
if (typeof window !== "undefined" && (isFirefox || isChrome) && window.addEventListener) {
window.addEventListener("load", function () {
if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) {
var downloadURL;
@@ -380,19 +380,19 @@
downloadURL = "https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi";
} else if (isFirefox) {
downloadURL = "https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/";
}
- _emberMetalCore.default.debug("For more advanced debugging, install the Ember Inspector from " + downloadURL);
+ _emberMetalCore["default"].debug("For more advanced debugging, install the Ember Inspector from " + downloadURL);
}
}, false);
}
}
- _emberMetalCore.default.Debug = {
+ _emberMetalCore["default"].Debug = {
_addDeprecationLevel: function (id, level) {
- _emberDebugDeprecationManager.default.setLevel(id, level);
+ _emberDebugDeprecationManager["default"].setLevel(id, level);
},
_deprecationLevels: _emberDebugDeprecationManager.deprecationLevels
};
/*
@@ -404,11 +404,11 @@
used a nice helpful warning message will be printed out.
*/
var runningNonEmberDebugJS = false;
exports.runningNonEmberDebugJS = runningNonEmberDebugJS;
if (runningNonEmberDebugJS) {
- _emberMetalCore.default.warn("Please use `ember.debug.js` instead of `ember.js` for development and debugging.");
+ _emberMetalCore["default"].warn("Please use `ember.debug.js` instead of `ember.js` for development and debugging.");
}
});
/*global __fail__*/
enifed('ember-debug/deprecation-manager', ['exports', 'ember-metal/dictionary', 'ember-metal/utils'], function (exports, _emberMetalDictionary, _emberMetalUtils) {
var deprecationLevels = {
@@ -416,13 +416,13 @@
LOG: (0, _emberMetalUtils.symbol)('LOG'),
SILENCE: (0, _emberMetalUtils.symbol)('SILENCE')
};
exports.deprecationLevels = deprecationLevels;
- exports.default = {
+ exports["default"] = {
defaultLevel: deprecationLevels.LOG,
- individualLevels: (0, _emberMetalDictionary.default)(null),
+ individualLevels: (0, _emberMetalDictionary["default"])(null),
setDefaultLevel: function (level) {
this.defaultLevel = level;
},
setLevel: function (id, level) {
this.individualLevels[id] = level;
@@ -447,11 +447,11 @@
_emberMetalComputed.computed.equal = _emberMetalComputed_macros.equal;
_emberMetalComputed.computed.gt = _emberMetalComputed_macros.gt;
_emberMetalComputed.computed.gte = _emberMetalComputed_macros.gte;
_emberMetalComputed.computed.lt = _emberMetalComputed_macros.lt;
_emberMetalComputed.computed.lte = _emberMetalComputed_macros.lte;
- _emberMetalComputed.computed.alias = _emberMetalAlias.default;
+ _emberMetalComputed.computed.alias = _emberMetalAlias["default"];
_emberMetalComputed.computed.oneWay = _emberMetalComputed_macros.oneWay;
_emberMetalComputed.computed.reads = _emberMetalComputed_macros.oneWay;
_emberMetalComputed.computed.readOnly = _emberMetalComputed_macros.readOnly;
_emberMetalComputed.computed.defaultTo = _emberMetalComputed_macros.defaultTo;
_emberMetalComputed.computed.deprecatingAlias = _emberMetalComputed_macros.deprecatingAlias;
@@ -461,170 +461,170 @@
_emberMetalComputed.computed.collect = _emberMetalComputed_macros.collect;
// END IMPORTS
// BEGIN EXPORTS
- var EmberInstrumentation = _emberMetalCore.default.Instrumentation = {};
+ var EmberInstrumentation = _emberMetalCore["default"].Instrumentation = {};
EmberInstrumentation.instrument = _emberMetalInstrumentation.instrument;
EmberInstrumentation.subscribe = _emberMetalInstrumentation.subscribe;
EmberInstrumentation.unsubscribe = _emberMetalInstrumentation.unsubscribe;
EmberInstrumentation.reset = _emberMetalInstrumentation.reset;
- _emberMetalCore.default.instrument = _emberMetalInstrumentation.instrument;
- _emberMetalCore.default.subscribe = _emberMetalInstrumentation.subscribe;
+ _emberMetalCore["default"].instrument = _emberMetalInstrumentation.instrument;
+ _emberMetalCore["default"].subscribe = _emberMetalInstrumentation.subscribe;
- _emberMetalCore.default._Cache = _emberMetalCache.default;
+ _emberMetalCore["default"]._Cache = _emberMetalCache["default"];
- _emberMetalCore.default.generateGuid = _emberMetalUtils.generateGuid;
- _emberMetalCore.default.GUID_KEY = _emberMetalUtils.GUID_KEY;
- _emberMetalCore.default.create = _emberMetalPlatformCreate.default;
- _emberMetalCore.default.keys = _emberMetalKeys.default;
- _emberMetalCore.default.platform = {
+ _emberMetalCore["default"].generateGuid = _emberMetalUtils.generateGuid;
+ _emberMetalCore["default"].GUID_KEY = _emberMetalUtils.GUID_KEY;
+ _emberMetalCore["default"].create = _emberMetalPlatformCreate["default"];
+ _emberMetalCore["default"].keys = _emberMetalKeys["default"];
+ _emberMetalCore["default"].platform = {
defineProperty: _emberMetalProperties.defineProperty,
hasPropertyAccessors: _emberMetalPlatformDefine_property.hasPropertyAccessors
};
- var EmberArrayPolyfills = _emberMetalCore.default.ArrayPolyfills = {};
+ var EmberArrayPolyfills = _emberMetalCore["default"].ArrayPolyfills = {};
EmberArrayPolyfills.map = _emberMetalArray.map;
EmberArrayPolyfills.forEach = _emberMetalArray.forEach;
EmberArrayPolyfills.filter = _emberMetalArray.filter;
EmberArrayPolyfills.indexOf = _emberMetalArray.indexOf;
- _emberMetalCore.default.Error = _emberMetalError.default;
- _emberMetalCore.default.guidFor = _emberMetalUtils.guidFor;
- _emberMetalCore.default.META_DESC = _emberMetalUtils.META_DESC;
- _emberMetalCore.default.EMPTY_META = _emberMetalUtils.EMPTY_META;
- _emberMetalCore.default.meta = _emberMetalUtils.meta;
- _emberMetalCore.default.getMeta = _emberMetalUtils.getMeta;
- _emberMetalCore.default.setMeta = _emberMetalUtils.setMeta;
- _emberMetalCore.default.metaPath = _emberMetalUtils.metaPath;
- _emberMetalCore.default.inspect = _emberMetalUtils.inspect;
- _emberMetalCore.default.tryCatchFinally = _emberMetalUtils.deprecatedTryCatchFinally;
- _emberMetalCore.default.makeArray = _emberMetalUtils.makeArray;
- _emberMetalCore.default.canInvoke = _emberMetalUtils.canInvoke;
- _emberMetalCore.default.tryInvoke = _emberMetalUtils.tryInvoke;
- _emberMetalCore.default.tryFinally = _emberMetalUtils.deprecatedTryFinally;
- _emberMetalCore.default.wrap = _emberMetalUtils.wrap;
- _emberMetalCore.default.apply = _emberMetalUtils.apply;
- _emberMetalCore.default.applyStr = _emberMetalUtils.applyStr;
- _emberMetalCore.default.uuid = _emberMetalUtils.uuid;
+ _emberMetalCore["default"].Error = _emberMetalError["default"];
+ _emberMetalCore["default"].guidFor = _emberMetalUtils.guidFor;
+ _emberMetalCore["default"].META_DESC = _emberMetalUtils.META_DESC;
+ _emberMetalCore["default"].EMPTY_META = _emberMetalUtils.EMPTY_META;
+ _emberMetalCore["default"].meta = _emberMetalUtils.meta;
+ _emberMetalCore["default"].getMeta = _emberMetalUtils.getMeta;
+ _emberMetalCore["default"].setMeta = _emberMetalUtils.setMeta;
+ _emberMetalCore["default"].metaPath = _emberMetalUtils.metaPath;
+ _emberMetalCore["default"].inspect = _emberMetalUtils.inspect;
+ _emberMetalCore["default"].tryCatchFinally = _emberMetalUtils.deprecatedTryCatchFinally;
+ _emberMetalCore["default"].makeArray = _emberMetalUtils.makeArray;
+ _emberMetalCore["default"].canInvoke = _emberMetalUtils.canInvoke;
+ _emberMetalCore["default"].tryInvoke = _emberMetalUtils.tryInvoke;
+ _emberMetalCore["default"].tryFinally = _emberMetalUtils.deprecatedTryFinally;
+ _emberMetalCore["default"].wrap = _emberMetalUtils.wrap;
+ _emberMetalCore["default"].apply = _emberMetalUtils.apply;
+ _emberMetalCore["default"].applyStr = _emberMetalUtils.applyStr;
+ _emberMetalCore["default"].uuid = _emberMetalUtils.uuid;
- _emberMetalCore.default.Logger = _emberMetalLogger.default;
+ _emberMetalCore["default"].Logger = _emberMetalLogger["default"];
- _emberMetalCore.default.get = _emberMetalProperty_get.get;
- _emberMetalCore.default.getWithDefault = _emberMetalProperty_get.getWithDefault;
- _emberMetalCore.default.normalizeTuple = _emberMetalProperty_get.normalizeTuple;
- _emberMetalCore.default._getPath = _emberMetalProperty_get._getPath;
+ _emberMetalCore["default"].get = _emberMetalProperty_get.get;
+ _emberMetalCore["default"].getWithDefault = _emberMetalProperty_get.getWithDefault;
+ _emberMetalCore["default"].normalizeTuple = _emberMetalProperty_get.normalizeTuple;
+ _emberMetalCore["default"]._getPath = _emberMetalProperty_get._getPath;
- _emberMetalCore.default.EnumerableUtils = _emberMetalEnumerable_utils.default;
+ _emberMetalCore["default"].EnumerableUtils = _emberMetalEnumerable_utils["default"];
- _emberMetalCore.default.on = _emberMetalEvents.on;
- _emberMetalCore.default.addListener = _emberMetalEvents.addListener;
- _emberMetalCore.default.removeListener = _emberMetalEvents.removeListener;
- _emberMetalCore.default._suspendListener = _emberMetalEvents.suspendListener;
- _emberMetalCore.default._suspendListeners = _emberMetalEvents.suspendListeners;
- _emberMetalCore.default.sendEvent = _emberMetalEvents.sendEvent;
- _emberMetalCore.default.hasListeners = _emberMetalEvents.hasListeners;
- _emberMetalCore.default.watchedEvents = _emberMetalEvents.watchedEvents;
- _emberMetalCore.default.listenersFor = _emberMetalEvents.listenersFor;
- _emberMetalCore.default.accumulateListeners = _emberMetalEvents.accumulateListeners;
+ _emberMetalCore["default"].on = _emberMetalEvents.on;
+ _emberMetalCore["default"].addListener = _emberMetalEvents.addListener;
+ _emberMetalCore["default"].removeListener = _emberMetalEvents.removeListener;
+ _emberMetalCore["default"]._suspendListener = _emberMetalEvents.suspendListener;
+ _emberMetalCore["default"]._suspendListeners = _emberMetalEvents.suspendListeners;
+ _emberMetalCore["default"].sendEvent = _emberMetalEvents.sendEvent;
+ _emberMetalCore["default"].hasListeners = _emberMetalEvents.hasListeners;
+ _emberMetalCore["default"].watchedEvents = _emberMetalEvents.watchedEvents;
+ _emberMetalCore["default"].listenersFor = _emberMetalEvents.listenersFor;
+ _emberMetalCore["default"].accumulateListeners = _emberMetalEvents.accumulateListeners;
- _emberMetalCore.default._ObserverSet = _emberMetalObserver_set.default;
+ _emberMetalCore["default"]._ObserverSet = _emberMetalObserver_set["default"];
- _emberMetalCore.default.propertyWillChange = _emberMetalProperty_events.propertyWillChange;
- _emberMetalCore.default.propertyDidChange = _emberMetalProperty_events.propertyDidChange;
- _emberMetalCore.default.overrideChains = _emberMetalProperty_events.overrideChains;
- _emberMetalCore.default.beginPropertyChanges = _emberMetalProperty_events.beginPropertyChanges;
- _emberMetalCore.default.endPropertyChanges = _emberMetalProperty_events.endPropertyChanges;
- _emberMetalCore.default.changeProperties = _emberMetalProperty_events.changeProperties;
+ _emberMetalCore["default"].propertyWillChange = _emberMetalProperty_events.propertyWillChange;
+ _emberMetalCore["default"].propertyDidChange = _emberMetalProperty_events.propertyDidChange;
+ _emberMetalCore["default"].overrideChains = _emberMetalProperty_events.overrideChains;
+ _emberMetalCore["default"].beginPropertyChanges = _emberMetalProperty_events.beginPropertyChanges;
+ _emberMetalCore["default"].endPropertyChanges = _emberMetalProperty_events.endPropertyChanges;
+ _emberMetalCore["default"].changeProperties = _emberMetalProperty_events.changeProperties;
- _emberMetalCore.default.defineProperty = _emberMetalProperties.defineProperty;
+ _emberMetalCore["default"].defineProperty = _emberMetalProperties.defineProperty;
- _emberMetalCore.default.set = _emberMetalProperty_set.set;
- _emberMetalCore.default.trySet = _emberMetalProperty_set.trySet;
+ _emberMetalCore["default"].set = _emberMetalProperty_set.set;
+ _emberMetalCore["default"].trySet = _emberMetalProperty_set.trySet;
- _emberMetalCore.default.OrderedSet = _emberMetalMap.OrderedSet;
- _emberMetalCore.default.Map = _emberMetalMap.Map;
- _emberMetalCore.default.MapWithDefault = _emberMetalMap.MapWithDefault;
+ _emberMetalCore["default"].OrderedSet = _emberMetalMap.OrderedSet;
+ _emberMetalCore["default"].Map = _emberMetalMap.Map;
+ _emberMetalCore["default"].MapWithDefault = _emberMetalMap.MapWithDefault;
- _emberMetalCore.default.getProperties = _emberMetalGet_properties.default;
- _emberMetalCore.default.setProperties = _emberMetalSet_properties.default;
+ _emberMetalCore["default"].getProperties = _emberMetalGet_properties["default"];
+ _emberMetalCore["default"].setProperties = _emberMetalSet_properties["default"];
- _emberMetalCore.default.watchKey = _emberMetalWatch_key.watchKey;
- _emberMetalCore.default.unwatchKey = _emberMetalWatch_key.unwatchKey;
+ _emberMetalCore["default"].watchKey = _emberMetalWatch_key.watchKey;
+ _emberMetalCore["default"].unwatchKey = _emberMetalWatch_key.unwatchKey;
- _emberMetalCore.default.flushPendingChains = _emberMetalChains.flushPendingChains;
- _emberMetalCore.default.removeChainWatcher = _emberMetalChains.removeChainWatcher;
- _emberMetalCore.default._ChainNode = _emberMetalChains.ChainNode;
- _emberMetalCore.default.finishChains = _emberMetalChains.finishChains;
+ _emberMetalCore["default"].flushPendingChains = _emberMetalChains.flushPendingChains;
+ _emberMetalCore["default"].removeChainWatcher = _emberMetalChains.removeChainWatcher;
+ _emberMetalCore["default"]._ChainNode = _emberMetalChains.ChainNode;
+ _emberMetalCore["default"].finishChains = _emberMetalChains.finishChains;
- _emberMetalCore.default.watchPath = _emberMetalWatch_path.watchPath;
- _emberMetalCore.default.unwatchPath = _emberMetalWatch_path.unwatchPath;
+ _emberMetalCore["default"].watchPath = _emberMetalWatch_path.watchPath;
+ _emberMetalCore["default"].unwatchPath = _emberMetalWatch_path.unwatchPath;
- _emberMetalCore.default.watch = _emberMetalWatching.watch;
- _emberMetalCore.default.isWatching = _emberMetalWatching.isWatching;
- _emberMetalCore.default.unwatch = _emberMetalWatching.unwatch;
- _emberMetalCore.default.rewatch = _emberMetalWatching.rewatch;
- _emberMetalCore.default.destroy = _emberMetalWatching.destroy;
+ _emberMetalCore["default"].watch = _emberMetalWatching.watch;
+ _emberMetalCore["default"].isWatching = _emberMetalWatching.isWatching;
+ _emberMetalCore["default"].unwatch = _emberMetalWatching.unwatch;
+ _emberMetalCore["default"].rewatch = _emberMetalWatching.rewatch;
+ _emberMetalCore["default"].destroy = _emberMetalWatching.destroy;
- _emberMetalCore.default.expandProperties = _emberMetalExpand_properties.default;
+ _emberMetalCore["default"].expandProperties = _emberMetalExpand_properties["default"];
- _emberMetalCore.default.ComputedProperty = _emberMetalComputed.ComputedProperty;
- _emberMetalCore.default.computed = _emberMetalComputed.computed;
- _emberMetalCore.default.cacheFor = _emberMetalComputed.cacheFor;
+ _emberMetalCore["default"].ComputedProperty = _emberMetalComputed.ComputedProperty;
+ _emberMetalCore["default"].computed = _emberMetalComputed.computed;
+ _emberMetalCore["default"].cacheFor = _emberMetalComputed.cacheFor;
- _emberMetalCore.default.addObserver = _emberMetalObserver.addObserver;
- _emberMetalCore.default.observersFor = _emberMetalObserver.observersFor;
- _emberMetalCore.default.removeObserver = _emberMetalObserver.removeObserver;
- _emberMetalCore.default.addBeforeObserver = _emberMetalObserver.addBeforeObserver;
- _emberMetalCore.default._suspendBeforeObserver = _emberMetalObserver._suspendBeforeObserver;
- _emberMetalCore.default._suspendBeforeObservers = _emberMetalObserver._suspendBeforeObservers;
- _emberMetalCore.default._suspendObserver = _emberMetalObserver._suspendObserver;
- _emberMetalCore.default._suspendObservers = _emberMetalObserver._suspendObservers;
- _emberMetalCore.default.beforeObserversFor = _emberMetalObserver.beforeObserversFor;
- _emberMetalCore.default.removeBeforeObserver = _emberMetalObserver.removeBeforeObserver;
+ _emberMetalCore["default"].addObserver = _emberMetalObserver.addObserver;
+ _emberMetalCore["default"].observersFor = _emberMetalObserver.observersFor;
+ _emberMetalCore["default"].removeObserver = _emberMetalObserver.removeObserver;
+ _emberMetalCore["default"].addBeforeObserver = _emberMetalObserver.addBeforeObserver;
+ _emberMetalCore["default"]._suspendBeforeObserver = _emberMetalObserver._suspendBeforeObserver;
+ _emberMetalCore["default"]._suspendBeforeObservers = _emberMetalObserver._suspendBeforeObservers;
+ _emberMetalCore["default"]._suspendObserver = _emberMetalObserver._suspendObserver;
+ _emberMetalCore["default"]._suspendObservers = _emberMetalObserver._suspendObservers;
+ _emberMetalCore["default"].beforeObserversFor = _emberMetalObserver.beforeObserversFor;
+ _emberMetalCore["default"].removeBeforeObserver = _emberMetalObserver.removeBeforeObserver;
- _emberMetalCore.default.IS_BINDING = _emberMetalMixin.IS_BINDING;
- _emberMetalCore.default.required = _emberMetalMixin.required;
- _emberMetalCore.default.aliasMethod = _emberMetalMixin.aliasMethod;
- _emberMetalCore.default.observer = _emberMetalMixin.observer;
- _emberMetalCore.default.immediateObserver = _emberMetalMixin.immediateObserver;
- _emberMetalCore.default.beforeObserver = _emberMetalMixin.beforeObserver;
- _emberMetalCore.default.mixin = _emberMetalMixin.mixin;
- _emberMetalCore.default.Mixin = _emberMetalMixin.Mixin;
+ _emberMetalCore["default"].IS_BINDING = _emberMetalMixin.IS_BINDING;
+ _emberMetalCore["default"].required = _emberMetalMixin.required;
+ _emberMetalCore["default"].aliasMethod = _emberMetalMixin.aliasMethod;
+ _emberMetalCore["default"].observer = _emberMetalMixin.observer;
+ _emberMetalCore["default"].immediateObserver = _emberMetalMixin.immediateObserver;
+ _emberMetalCore["default"].beforeObserver = _emberMetalMixin.beforeObserver;
+ _emberMetalCore["default"].mixin = _emberMetalMixin.mixin;
+ _emberMetalCore["default"].Mixin = _emberMetalMixin.Mixin;
- _emberMetalCore.default.oneWay = _emberMetalBinding.oneWay;
- _emberMetalCore.default.bind = _emberMetalBinding.bind;
- _emberMetalCore.default.Binding = _emberMetalBinding.Binding;
- _emberMetalCore.default.isGlobalPath = _emberMetalBinding.isGlobalPath;
+ _emberMetalCore["default"].oneWay = _emberMetalBinding.oneWay;
+ _emberMetalCore["default"].bind = _emberMetalBinding.bind;
+ _emberMetalCore["default"].Binding = _emberMetalBinding.Binding;
+ _emberMetalCore["default"].isGlobalPath = _emberMetalBinding.isGlobalPath;
- _emberMetalCore.default.run = _emberMetalRun_loop.default;
+ _emberMetalCore["default"].run = _emberMetalRun_loop["default"];
/**
@class Backburner
@for Ember
@private
*/
- _emberMetalCore.default.Backburner = _backburner.default;
+ _emberMetalCore["default"].Backburner = _backburner["default"];
// this is the new go forward, once Ember Data updates to using `_Backburner` we
// can remove the non-underscored version.
- _emberMetalCore.default._Backburner = _backburner.default;
+ _emberMetalCore["default"]._Backburner = _backburner["default"];
- _emberMetalCore.default.libraries = new _emberMetalLibraries.default();
- _emberMetalCore.default.libraries.registerCoreLibrary("Ember", _emberMetalCore.default.VERSION);
+ _emberMetalCore["default"].libraries = new _emberMetalLibraries["default"]();
+ _emberMetalCore["default"].libraries.registerCoreLibrary("Ember", _emberMetalCore["default"].VERSION);
- _emberMetalCore.default.isNone = _emberMetalIs_none.default;
- _emberMetalCore.default.isEmpty = _emberMetalIs_empty.default;
- _emberMetalCore.default.isBlank = _emberMetalIs_blank.default;
- _emberMetalCore.default.isPresent = _emberMetalIs_present.default;
+ _emberMetalCore["default"].isNone = _emberMetalIs_none["default"];
+ _emberMetalCore["default"].isEmpty = _emberMetalIs_empty["default"];
+ _emberMetalCore["default"].isBlank = _emberMetalIs_blank["default"];
+ _emberMetalCore["default"].isPresent = _emberMetalIs_present["default"];
- _emberMetalCore.default.merge = _emberMetalMerge.default;
+ _emberMetalCore["default"].merge = _emberMetalMerge["default"];
- if (_emberMetalCore.default.FEATURES.isEnabled("ember-metal-stream")) {
- _emberMetalCore.default.stream = {
- Stream: _emberMetalStreamsStream.default,
+ if (_emberMetalCore["default"].FEATURES.isEnabled("ember-metal-stream")) {
+ _emberMetalCore["default"].stream = {
+ Stream: _emberMetalStreamsStream["default"],
isStream: _emberMetalStreamsUtils.isStream,
subscribe: _emberMetalStreamsUtils.subscribe,
unsubscribe: _emberMetalStreamsUtils.unsubscribe,
read: _emberMetalStreamsUtils.read,
@@ -656,29 +656,29 @@
@event onerror
@for Ember
@param {Exception} error the error object
@public
*/
- _emberMetalCore.default.onerror = null;
+ _emberMetalCore["default"].onerror = null;
// END EXPORTS
// do this for side-effects of updating Ember.assert, warn, etc when
// ember-debug is present
- if (_emberMetalCore.default.__loader.registry["ember-debug"]) {
+ if (_emberMetalCore["default"].__loader.registry["ember-debug"]) {
requireModule("ember-debug");
}
- exports.default = _emberMetalCore.default;
+ exports["default"] = _emberMetalCore["default"];
});
/**
@module ember
@submodule ember-metal
*/
// BEGIN IMPORTS
enifed("ember-metal/alias", ["exports", "ember-metal/property_get", "ember-metal/property_set", "ember-metal/core", "ember-metal/error", "ember-metal/properties", "ember-metal/computed", "ember-metal/platform/create", "ember-metal/utils", "ember-metal/dependent_keys"], function (exports, _emberMetalProperty_get, _emberMetalProperty_set, _emberMetalCore, _emberMetalError, _emberMetalProperties, _emberMetalComputed, _emberMetalPlatformCreate, _emberMetalUtils, _emberMetalDependent_keys) {
- exports.default = alias;
+ exports["default"] = alias;
exports.AliasedProperty = AliasedProperty;
function alias(altKey) {
return new AliasedProperty(altKey);
}
@@ -687,11 +687,11 @@
this.isDescriptor = true;
this.altKey = altKey;
this._dependentKeys = [altKey];
}
- AliasedProperty.prototype = (0, _emberMetalPlatformCreate.default)(_emberMetalProperties.Descriptor.prototype);
+ AliasedProperty.prototype = (0, _emberMetalPlatformCreate["default"])(_emberMetalProperties.Descriptor.prototype);
AliasedProperty.prototype.get = function AliasedProperty_get(obj, keyName) {
return (0, _emberMetalProperty_get.get)(obj, this.altKey);
};
@@ -706,11 +706,11 @@
AliasedProperty.prototype.didUnwatch = function (obj, keyName) {
(0, _emberMetalDependent_keys.removeDependentKeys)(this, obj, keyName, (0, _emberMetalUtils.meta)(obj));
};
AliasedProperty.prototype.setup = function (obj, keyName) {
- _emberMetalCore.default.assert("Setting alias '" + keyName + "' on self", this.altKey !== keyName);
+ _emberMetalCore["default"].assert("Setting alias '" + keyName + "' on self", this.altKey !== keyName);
var m = (0, _emberMetalUtils.meta)(obj);
if (m.watching[keyName]) {
(0, _emberMetalDependent_keys.addDependentKeys)(this, obj, keyName, m);
}
};
@@ -726,11 +726,11 @@
this.set = AliasedProperty_readOnlySet;
return this;
};
function AliasedProperty_readOnlySet(obj, keyName, value) {
- throw new _emberMetalError.default("Cannot set read-only property '" + keyName + "' on object: " + (0, _emberMetalUtils.inspect)(obj));
+ throw new _emberMetalError["default"]("Cannot set read-only property '" + keyName + "' on object: " + (0, _emberMetalUtils.inspect)(obj));
}
AliasedProperty.prototype.oneWay = function () {
this.set = AliasedProperty_oneWaySet;
return this;
@@ -904,11 +904,11 @@
@for Ember
@type Boolean
@default false
@public
*/
- _emberMetalCore.default.LOG_BINDINGS = false || !!_emberMetalCore.default.ENV.LOG_BINDINGS;
+ _emberMetalCore["default"].LOG_BINDINGS = false || !!_emberMetalCore["default"].ENV.LOG_BINDINGS;
/**
Returns true if the provided path is global (e.g., `MyApp.fooController.bar`)
instead of local (`foo.bar.baz`).
@@ -918,11 +918,11 @@
@param {String} path
@return Boolean
*/
function getWithGlobals(obj, path) {
- return (0, _emberMetalProperty_get.get)((0, _emberMetalPath_cache.isGlobal)(path) ? _emberMetalCore.default.lookup : obj, path);
+ return (0, _emberMetalProperty_get.get)((0, _emberMetalPath_cache.isGlobal)(path) ? _emberMetalCore["default"].lookup : obj, path);
}
// ..........................................................
// BINDING
//
@@ -1030,11 +1030,11 @@
@param {Object} obj The root object for this binding.
@return {Ember.Binding} `this`
@public
*/
connect: function (obj) {
- _emberMetalCore.default.assert("Must pass a valid object to Ember.Binding.connect()", !!obj);
+ _emberMetalCore["default"].assert("Must pass a valid object to Ember.Binding.connect()", !!obj);
var fromPath = this._from;
var toPath = this._to;
(0, _emberMetalProperty_set.trySet)(obj, toPath, getWithGlobals(obj, fromPath));
@@ -1058,11 +1058,11 @@
@param {Object} obj The root object you passed when connecting the binding.
@return {Ember.Binding} `this`
@public
*/
disconnect: function (obj) {
- _emberMetalCore.default.assert("Must pass a valid object to Ember.Binding.disconnect()", !!obj);
+ _emberMetalCore["default"].assert("Must pass a valid object to Ember.Binding.disconnect()", !!obj);
var twoWay = !this._oneWay;
// remove an observer on the object so we're no longer notified of
// changes that should update bindings.
@@ -1094,11 +1094,11 @@
_scheduleSync: function (obj, dir) {
var existingDir = this._direction;
// if we haven't scheduled the binding yet, schedule it
if (existingDir === undefined) {
- _emberMetalRun_loop.default.schedule("sync", this, this._sync, obj);
+ _emberMetalRun_loop["default"].schedule("sync", this, this._sync, obj);
this._direction = dir;
}
// If both a 'back' and 'fwd' sync have been scheduled on the same object,
// default to a 'fwd' sync so that it remains deterministic.
@@ -1106,11 +1106,11 @@
this._direction = "fwd";
}
},
_sync: function (obj) {
- var log = _emberMetalCore.default.LOG_BINDINGS;
+ var log = _emberMetalCore["default"].LOG_BINDINGS;
// don't synchronize destroyed objects or disconnected bindings
if (obj.isDestroyed || !this._readyToSync) {
return;
}
@@ -1126,11 +1126,11 @@
// if we're synchronizing from the remote object...
if (direction === "fwd") {
var fromValue = getWithGlobals(obj, this._from);
if (log) {
- _emberMetalCore.default.Logger.log(" ", this.toString(), "->", fromValue, obj);
+ _emberMetalCore["default"].Logger.log(" ", this.toString(), "->", fromValue, obj);
}
if (this._oneWay) {
(0, _emberMetalProperty_set.trySet)(obj, toPath, fromValue);
} else {
(0, _emberMetalObserver._suspendObserver)(obj, toPath, this, this.toDidChange, function () {
@@ -1139,14 +1139,14 @@
}
// if we're synchronizing *to* the remote object
} else if (direction === "back") {
var toValue = (0, _emberMetalProperty_get.get)(obj, this._to);
if (log) {
- _emberMetalCore.default.Logger.log(" ", this.toString(), "<-", toValue, obj);
+ _emberMetalCore["default"].Logger.log(" ", this.toString(), "<-", toValue, obj);
}
(0, _emberMetalObserver._suspendObserver)(obj, fromPath, this, this.fromDidChange, function () {
- (0, _emberMetalProperty_set.trySet)((0, _emberMetalPath_cache.isGlobal)(fromPath) ? _emberMetalCore.default.lookup : obj, fromPath, toValue);
+ (0, _emberMetalProperty_set.trySet)((0, _emberMetalPath_cache.isGlobal)(fromPath) ? _emberMetalCore["default"].lookup : obj, fromPath, toValue);
});
}
}
};
@@ -1372,14 +1372,14 @@
exports.Binding = Binding;
exports.isGlobalPath = _emberMetalPath_cache.isGlobal;
});
// Ember.Logger, Ember.LOG_BINDINGS, assert
enifed('ember-metal/cache', ['exports', 'ember-metal/dictionary'], function (exports, _emberMetalDictionary) {
- exports.default = Cache;
+ exports["default"] = Cache;
function Cache(limit, func) {
- this.store = (0, _emberMetalDictionary.default)(null);
+ this.store = (0, _emberMetalDictionary["default"])(null);
this.size = 0;
this.misses = 0;
this.hits = 0;
this.limit = limit;
this.func = func;
@@ -1417,22 +1417,22 @@
return value;
},
purge: function () {
- this.store = (0, _emberMetalDictionary.default)(null);
+ this.store = (0, _emberMetalDictionary["default"])(null);
this.size = 0;
this.hits = 0;
this.misses = 0;
}
};
});
enifed("ember-metal/chains", ["exports", "ember-metal/core", "ember-metal/property_get", "ember-metal/utils", "ember-metal/array", "ember-metal/watch_key"], function (exports, _emberMetalCore, _emberMetalProperty_get, _emberMetalUtils, _emberMetalArray, _emberMetalWatch_key) {
exports.flushPendingChains = flushPendingChains;
exports.finishChains = finishChains;
- var warn = _emberMetalCore.default.warn;
+ var warn = _emberMetalCore["default"].warn;
var FIRST_KEY = /^([^\.]+)/;
function firstKey(path) {
return path.match(FIRST_KEY)[0];
}
@@ -2002,11 +2002,11 @@
@method volatile
@return {Ember.ComputedProperty} this
@chainable
@public
*/
- ComputedPropertyPrototype.volatile = function () {
+ ComputedPropertyPrototype["volatile"] = function () {
this._cacheable = false;
return this;
};
/**
@@ -2072,11 +2072,11 @@
args.push(property);
};
args = [];
for (var i = 0, l = arguments.length; i < l; i++) {
- (0, _emberMetalExpand_properties.default)(arguments[i], addArg);
+ (0, _emberMetalExpand_properties["default"])(arguments[i], addArg);
}
this._dependentKeys = args;
return this;
};
@@ -2267,11 +2267,11 @@
var hadCachedValue = false;
var cachedValue, ret;
if (this._readOnly) {
- throw new _emberMetalError.default("Cannot set read-only property \"" + keyName + "\" on object: " + (0, _emberMetalUtils.inspect)(obj));
+ throw new _emberMetalError["default"]("Cannot set read-only property \"" + keyName + "\" on object: " + (0, _emberMetalUtils.inspect)(obj));
}
if (cacheable && cache && cache[keyName] !== undefined) {
if (cache[keyName] !== UNDEFINED) {
cachedValue = cache[keyName];
@@ -2536,11 +2536,11 @@
@public
*/
function empty(dependentKey) {
return (0, _emberMetalComputed.computed)(dependentKey + ".length", function () {
- return (0, _emberMetalIs_empty.default)((0, _emberMetalProperty_get.get)(this, dependentKey));
+ return (0, _emberMetalIs_empty["default"])((0, _emberMetalProperty_get.get)(this, dependentKey));
});
}
/**
A computed property that returns true if the value of the dependent
@@ -2568,11 +2568,11 @@
@public
*/
function notEmpty(dependentKey) {
return (0, _emberMetalComputed.computed)(dependentKey + ".length", function () {
- return !(0, _emberMetalIs_empty.default)((0, _emberMetalProperty_get.get)(this, dependentKey));
+ return !(0, _emberMetalIs_empty["default"])((0, _emberMetalProperty_get.get)(this, dependentKey));
});
}
/**
A computed property that returns true if the value of the dependent
@@ -2603,11 +2603,11 @@
@public
*/
function none(dependentKey) {
return (0, _emberMetalComputed.computed)(dependentKey, function () {
- return (0, _emberMetalIs_none.default)((0, _emberMetalProperty_get.get)(this, dependentKey));
+ return (0, _emberMetalIs_none["default"])((0, _emberMetalProperty_get.get)(this, dependentKey));
});
}
/**
A computed property that returns the inverse boolean value
@@ -2991,11 +2991,11 @@
the first truthy value of given list of properties.
@deprecated Use `Ember.computed.or` instead.
@public
*/
var any = generateComputedWithProperties(function (properties) {
- _emberMetalCore.default.deprecate("Usage of Ember.computed.any is deprecated, use `Ember.computed.or` instead.");
+ _emberMetalCore["default"].deprecate("Usage of Ember.computed.any is deprecated, use `Ember.computed.or` instead.");
for (var key in properties) {
if (properties.hasOwnProperty(key) && properties[key]) {
return properties[key];
}
}
@@ -3028,14 +3028,14 @@
@return {Ember.ComputedProperty} computed property which maps
values of all passed in properties to an array.
@public
*/
var collect = generateComputedWithProperties(function (properties) {
- var res = _emberMetalCore.default.A();
+ var res = _emberMetalCore["default"].A();
for (var key in properties) {
if (properties.hasOwnProperty(key)) {
- if ((0, _emberMetalIs_none.default)(properties[key])) {
+ if ((0, _emberMetalIs_none["default"])(properties[key])) {
res.push(null);
} else {
res.push(properties[key]);
}
}
@@ -3105,11 +3105,11 @@
one way computed property to the original value for property.
@public
*/
function oneWay(dependentKey) {
- return (0, _emberMetalAlias.default)(dependentKey).oneWay();
+ return (0, _emberMetalAlias["default"])(dependentKey).oneWay();
}
/**
This is a more semantically meaningful alias of `computed.oneWay`,
whose name is somewhat ambiguous as to which direction the data flows.
@@ -3157,11 +3157,11 @@
@since 1.5.0
@public
*/
function readOnly(dependentKey) {
- return (0, _emberMetalAlias.default)(dependentKey).readOnly();
+ return (0, _emberMetalAlias["default"])(dependentKey).readOnly();
}
/**
A computed property that acts like a standard getter and setter,
but returns the value at the provided `defaultPath` if the
@@ -3192,16 +3192,16 @@
*/
function defaultTo(defaultPath) {
return (0, _emberMetalComputed.computed)({
get: function (key) {
- _emberMetalCore.default.deprecate("Usage of Ember.computed.defaultTo is deprecated, use `Ember.computed.oneWay` instead.");
+ _emberMetalCore["default"].deprecate("Usage of Ember.computed.defaultTo is deprecated, use `Ember.computed.oneWay` instead.");
return (0, _emberMetalProperty_get.get)(this, defaultPath);
},
set: function (key, newValue, cachedValue) {
- _emberMetalCore.default.deprecate("Usage of Ember.computed.defaultTo is deprecated, use `Ember.computed.oneWay` instead.");
+ _emberMetalCore["default"].deprecate("Usage of Ember.computed.defaultTo is deprecated, use `Ember.computed.oneWay` instead.");
return newValue != null ? newValue : (0, _emberMetalProperty_get.get)(this, defaultPath);
}
});
}
@@ -3221,15 +3221,15 @@
*/
function deprecatingAlias(dependentKey) {
return (0, _emberMetalComputed.computed)(dependentKey, {
get: function (key) {
- _emberMetalCore.default.deprecate("Usage of `" + key + "` is deprecated, use `" + dependentKey + "` instead.");
+ _emberMetalCore["default"].deprecate("Usage of `" + key + "` is deprecated, use `" + dependentKey + "` instead.");
return (0, _emberMetalProperty_get.get)(this, dependentKey);
},
set: function (key, value) {
- _emberMetalCore.default.deprecate("Usage of `" + key + "` is deprecated, use `" + dependentKey + "` instead.");
+ _emberMetalCore["default"].deprecate("Usage of `" + key + "` is deprecated, use `" + dependentKey + "` instead.");
(0, _emberMetalProperty_set.set)(this, dependentKey, value);
return value;
}
});
}
@@ -3479,11 +3479,11 @@
Ember.deprecateFunc = function (_, func) {
return func;
};
}
- exports.default = Ember;
+ exports["default"] = Ember;
});
enifed("ember-metal/dependent_keys", ["exports", "ember-metal/platform/create", "ember-metal/watching"], function (exports, _emberMetalPlatformCreate, _emberMetalWatching) {
exports.addDependentKeys = addDependentKeys;
exports.removeDependentKeys = removeDependentKeys;
// Remove "use strict"; from transpiled module until
@@ -3518,11 +3518,11 @@
// create a new empty list of dependencies for the key
keys = depsMeta[depKey] = {};
} else if (!depsMeta.hasOwnProperty(depKey)) {
// otherwise if the dependency list is inherited from
// a superclass, clone the hash
- keys = depsMeta[depKey] = (0, _emberMetalPlatformCreate.default)(keys);
+ keys = depsMeta[depKey] = (0, _emberMetalPlatformCreate["default"])(keys);
}
return keys;
}
function metaForDeps(meta) {
@@ -3588,11 +3588,11 @@
@since 1.7.0
*/
function deprecateProperty(object, deprecatedKey, newKey) {
function deprecate() {
- _emberMetalCore.default.deprecate("Usage of `" + deprecatedKey + "` is deprecated, use `" + newKey + "` instead.");
+ _emberMetalCore["default"].deprecate("Usage of `" + deprecatedKey + "` is deprecated, use `" + newKey + "` instead.");
}
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
(0, _emberMetalProperties.defineProperty)(object, deprecatedKey, {
configurable: true,
@@ -3612,20 +3612,20 @@
/**
@module ember
@submodule ember-metal
*/
enifed('ember-metal/dictionary', ['exports', 'ember-metal/platform/create'], function (exports, _emberMetalPlatformCreate) {
- exports.default = makeDictionary;
+ exports["default"] = makeDictionary;
// the delete is meant to hint at runtimes that this object should remain in
// dictionary mode. This is clearly a runtime specific hack, but currently it
// appears worthwhile in some usecases. Please note, these deletes do increase
// the cost of creation dramatically over a plain Object.create. And as this
// only makes sense for long-lived dictionaries that aren't instantiated often.
function makeDictionary(parent) {
- var dict = (0, _emberMetalPlatformCreate.default)(parent);
+ var dict = (0, _emberMetalPlatformCreate["default"])(parent);
dict['_dict'] = null;
delete dict['_dict'];
return dict;
}
});
@@ -3670,11 +3670,11 @@
function map(obj, callback, thisArg) {
return obj.map ? obj.map(callback, thisArg) : _emberMetalArray.map.call(obj, callback, thisArg);
}
- var deprecatedMap = _emberMetalCore.default.deprecateFunc('Ember.EnumberableUtils.map is deprecated, please refactor to use Array.prototype.map.', map);
+ var deprecatedMap = _emberMetalCore["default"].deprecateFunc('Ember.EnumberableUtils.map is deprecated, please refactor to use Array.prototype.map.', map);
/**
Calls the forEach function on the passed object with a specified callback. This
uses `Ember.ArrayPolyfill`'s-forEach method when necessary.
@@ -3688,11 +3688,11 @@
function forEach(obj, callback, thisArg) {
return obj.forEach ? obj.forEach(callback, thisArg) : _emberMetalArray.forEach.call(obj, callback, thisArg);
}
- var deprecatedForEach = _emberMetalCore.default.deprecateFunc('Ember.EnumberableUtils.forEach is deprecated, please refactor to use Array.prototype.forEach.', forEach);
+ var deprecatedForEach = _emberMetalCore["default"].deprecateFunc('Ember.EnumberableUtils.forEach is deprecated, please refactor to use Array.prototype.forEach.', forEach);
/**
Calls the filter function on the passed object with a specified callback. This
uses `Ember.ArrayPolyfill`'s-filter method when necessary.
@@ -3709,11 +3709,11 @@
function filter(obj, callback, thisArg) {
return obj.filter ? obj.filter(callback, thisArg) : _emberMetalArray.filter.call(obj, callback, thisArg);
}
- var deprecatedFilter = _emberMetalCore.default.deprecateFunc('Ember.EnumberableUtils.filter is deprecated, please refactor to use Array.prototype.filter.', filter);
+ var deprecatedFilter = _emberMetalCore["default"].deprecateFunc('Ember.EnumberableUtils.filter is deprecated, please refactor to use Array.prototype.filter.', filter);
/**
Calls the indexOf function on the passed object with a specified callback. This
uses `Ember.ArrayPolyfill`'s-indexOf method when necessary.
@@ -3727,11 +3727,11 @@
function indexOf(obj, element, index) {
return obj.indexOf ? obj.indexOf(element, index) : _emberMetalArray.indexOf.call(obj, element, index);
}
- var deprecatedIndexOf = _emberMetalCore.default.deprecateFunc('Ember.EnumberableUtils.indexOf is deprecated, please refactor to use Array.prototype.indexOf.', indexOf);
+ var deprecatedIndexOf = _emberMetalCore["default"].deprecateFunc('Ember.EnumberableUtils.indexOf is deprecated, please refactor to use Array.prototype.indexOf.', indexOf);
/**
Returns an array of indexes of the first occurrences of the passed elements
on the passed object.
@@ -3756,11 +3756,11 @@
return elements === undefined ? [] : map(elements, function (item) {
return indexOf(obj, item);
});
}
- var deprecatedIndexesOf = _emberMetalCore.default.deprecateFunc('Ember.EnumerableUtils.indexesOf is deprecated.', indexesOf);
+ var deprecatedIndexesOf = _emberMetalCore["default"].deprecateFunc('Ember.EnumerableUtils.indexesOf is deprecated.', indexesOf);
/**
Adds an object to an array. If the array already includes the object this
method has no effect.
@@ -3778,11 +3778,11 @@
if (index === -1) {
array.push(item);
}
}
- var deprecatedAddObject = _emberMetalCore.default.deprecateFunc('Ember.EnumerableUtils.addObject is deprecated.', addObject);
+ var deprecatedAddObject = _emberMetalCore["default"].deprecateFunc('Ember.EnumerableUtils.addObject is deprecated.', addObject);
/**
Removes an object from an array. If the array does not contain the passed
object this method has no effect.
@@ -3800,11 +3800,11 @@
if (index !== -1) {
array.splice(index, 1);
}
}
- var deprecatedRemoveObject = _emberMetalCore.default.deprecateFunc('Ember.EnumerableUtils.removeObject is deprecated.', removeObject);
+ var deprecatedRemoveObject = _emberMetalCore["default"].deprecateFunc('Ember.EnumerableUtils.removeObject is deprecated.', removeObject);
function _replace(array, idx, amt, objects) {
var args = [].concat(objects);
var ret = [];
// https://code.google.com/p/chromium/issues/detail?id=56588
@@ -3864,11 +3864,11 @@
} else {
return _replace(array, idx, amt, objects);
}
}
- var deprecatedReplace = _emberMetalCore.default.deprecateFunc('Ember.EnumerableUtils.replace is deprecated.', replace);
+ var deprecatedReplace = _emberMetalCore["default"].deprecateFunc('Ember.EnumerableUtils.replace is deprecated.', replace);
/**
Calculates the intersection of two arrays. This method returns a new array
filled with the records that the two passed arrays share with each other.
If there is no intersection, an empty array will be returned.
@@ -3903,15 +3903,15 @@
});
return result;
}
- var deprecatedIntersection = _emberMetalCore.default.deprecateFunc('Ember.EnumerableUtils.intersection is deprecated.', intersection);
+ var deprecatedIntersection = _emberMetalCore["default"].deprecateFunc('Ember.EnumerableUtils.intersection is deprecated.', intersection);
// TODO: this only exists to maintain the existing api, as we move forward it
// should only be part of the "global build" via some shim
- exports.default = {
+ exports["default"] = {
_replace: _replace,
addObject: deprecatedAddObject,
filter: deprecatedFilter,
forEach: deprecatedForEach,
indexOf: deprecatedIndexOf,
@@ -3939,11 +3939,11 @@
// This code attempts to automatically detect an environment with DOM
// by searching for window and document.createElement. An environment
// with DOM may disable the DOM functionality of Ember explicitly by
// defining a `disableBrowserEnvironment` ENV.
- var hasDOM = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof document.createElement !== 'undefined' && !_emberMetalCore.default.ENV.disableBrowserEnvironment;
+ var hasDOM = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof document.createElement !== 'undefined' && !_emberMetalCore["default"].ENV.disableBrowserEnvironment;
if (hasDOM) {
environment = {
hasDOM: true,
isChrome: !!window.chrome && !window.opera,
@@ -3963,11 +3963,11 @@
userAgent: 'Lynx (textmode)',
global: null
};
}
- exports.default = environment;
+ exports["default"] = environment;
});
enifed('ember-metal/error', ['exports', 'ember-metal/platform/create'], function (exports, _emberMetalPlatformCreate) {
var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];
@@ -3997,13 +3997,13 @@
for (var idx = 0; idx < errorProps.length; idx++) {
this[errorProps[idx]] = tmp[errorProps[idx]];
}
}
- EmberError.prototype = (0, _emberMetalPlatformCreate.default)(Error.prototype);
+ EmberError.prototype = (0, _emberMetalPlatformCreate["default"])(Error.prototype);
- exports.default = EmberError;
+ exports["default"] = EmberError;
});
enifed("ember-metal/events", ["exports", "ember-metal/core", "ember-metal/utils", "ember-metal/platform/create"], function (exports, _emberMetalCore, _emberMetalUtils, _emberMetalPlatformCreate) {
exports.accumulateListeners = accumulateListeners;
exports.addListener = addListener;
exports.suspendListener = suspendListener;
@@ -4058,15 +4058,15 @@
var meta = (0, _emberMetalUtils.meta)(obj, true);
var actions;
var listeners = meta.listeners;
if (!listeners) {
- listeners = meta.listeners = (0, _emberMetalPlatformCreate.default)(null);
+ listeners = meta.listeners = (0, _emberMetalPlatformCreate["default"])(null);
listeners.__source__ = obj;
} else if (listeners.__source__ !== obj) {
// setup inherited copy of the listeners object
- listeners = meta.listeners = (0, _emberMetalPlatformCreate.default)(listeners);
+ listeners = meta.listeners = (0, _emberMetalPlatformCreate["default"])(listeners);
listeners.__source__ = obj;
}
actions = listeners[eventName];
@@ -4119,11 +4119,11 @@
@param {Boolean} once A flag whether a function should only be called once
@public
*/
function addListener(obj, eventName, target, method, once) {
- _emberMetalCore.default.assert("You must pass at least an object and event name to Ember.addListener", !!obj && !!eventName);
+ _emberMetalCore["default"].assert("You must pass at least an object and event name to Ember.addListener", !!obj && !!eventName);
if (!method && "function" === typeof target) {
method = target;
target = null;
}
@@ -4159,11 +4159,11 @@
@param {Object|Function} target A target object or a function
@param {Function|String} method A function or the name of a function to be called on `target`
@public
*/
function removeListener(obj, eventName, target, method) {
- _emberMetalCore.default.assert("You must pass at least an object and event name to Ember.removeListener", !!obj && !!eventName);
+ _emberMetalCore["default"].assert("You must pass at least an object and event name to Ember.removeListener", !!obj && !!eventName);
if (!method && "function" === typeof target) {
method = target;
target = null;
}
@@ -4332,11 +4332,11 @@
@public
*/
function sendEvent(obj, eventName, params, actions) {
// first give object a chance to handle it
- if (obj !== _emberMetalCore.default && "function" === typeof obj.sendEvent) {
+ if (obj !== _emberMetalCore["default"] && "function" === typeof obj.sendEvent) {
obj.sendEvent(eventName, params);
}
if (!actions) {
var meta = obj["__ember_meta__"];
@@ -4464,11 +4464,11 @@
/**
@module ember
@submodule ember-metal
*/
enifed('ember-metal/expand_properties', ['exports', 'ember-metal/error', 'ember-metal/array'], function (exports, _emberMetalError, _emberMetalArray) {
- exports.default = expandProperties;
+ exports["default"] = expandProperties;
/**
@module ember
@submodule ember-metal
*/
@@ -4502,11 +4502,11 @@
expansion, and is passed the expansion.
*/
function expandProperties(pattern, callback) {
if (pattern.indexOf(' ') > -1) {
- throw new _emberMetalError.default('Brace expanded properties cannot contain spaces, e.g. \'user.{firstName, lastName}\' should be \'user.{firstName,lastName}\'');
+ throw new _emberMetalError["default"]('Brace expanded properties cannot contain spaces, e.g. \'user.{firstName, lastName}\' should be \'user.{firstName,lastName}\'');
}
if ('string' === typeof pattern) {
var parts = pattern.split(SPLIT_REGEX);
var properties = [parts];
@@ -4538,11 +4538,11 @@
return all;
}
});
enifed("ember-metal/get_properties", ["exports", "ember-metal/property_get", "ember-metal/utils"], function (exports, _emberMetalProperty_get, _emberMetalUtils) {
- exports.default = getProperties;
+ exports["default"] = getProperties;
/**
To get multiple properties at once, call `Ember.getProperties`
with an object followed by a list of strings or an array:
@@ -4604,16 +4604,16 @@
function injectedPropertyGet(keyName) {
var possibleDesc = this[keyName];
var desc = possibleDesc !== null && typeof possibleDesc === "object" && possibleDesc.isDescriptor ? possibleDesc : undefined;
- _emberMetalCore.default.assert("Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.", this.container);
+ _emberMetalCore["default"].assert("Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.", this.container);
return this.container.lookup(desc.type + ":" + (desc.name || keyName));
}
- InjectedProperty.prototype = (0, _emberMetalPlatformCreate.default)(_emberMetalProperties.Descriptor.prototype);
+ InjectedProperty.prototype = (0, _emberMetalPlatformCreate["default"])(_emberMetalProperties.Descriptor.prototype);
var InjectedPropertyPrototype = InjectedProperty.prototype;
var ComputedPropertyPrototype = _emberMetalComputed.ComputedProperty.prototype;
var AliasedPropertyPrototype = _emberMetalAlias.AliasedProperty.prototype;
@@ -4622,11 +4622,11 @@
InjectedPropertyPrototype.get = ComputedPropertyPrototype.get;
InjectedPropertyPrototype.readOnly = ComputedPropertyPrototype.readOnly;
InjectedPropertyPrototype.teardown = ComputedPropertyPrototype.teardown;
- exports.default = InjectedProperty;
+ exports["default"] = InjectedProperty;
});
// Ember.assert
enifed("ember-metal/instrumentation", ["exports", "ember-metal/core", "ember-metal/utils"], function (exports, _emberMetalCore, _emberMetalUtils) {
exports.instrument = instrument;
exports._instrumentStart = _instrumentStart;
@@ -4761,11 +4761,11 @@
return;
}
var payload = _payload();
- var STRUCTURED_PROFILE = _emberMetalCore.default.STRUCTURED_PROFILE;
+ var STRUCTURED_PROFILE = _emberMetalCore["default"].STRUCTURED_PROFILE;
var timeName;
if (STRUCTURED_PROFILE) {
timeName = name + ": " + payload.object;
console.time(timeName);
}
@@ -4870,11 +4870,11 @@
subscribers.length = 0;
cache = {};
}
});
enifed('ember-metal/is_blank', ['exports', 'ember-metal/is_empty'], function (exports, _emberMetalIs_empty) {
- exports.default = isBlank;
+ exports["default"] = isBlank;
/**
A value is blank if it is empty or a whitespace string.
```javascript
@@ -4898,11 +4898,11 @@
@since 1.5.0
@public
*/
function isBlank(obj) {
- return (0, _emberMetalIs_empty.default)(obj) || typeof obj === 'string' && obj.match(/\S/) === null;
+ return (0, _emberMetalIs_empty["default"])(obj) || typeof obj === 'string' && obj.match(/\S/) === null;
}
});
enifed('ember-metal/is_empty', ['exports', 'ember-metal/property_get', 'ember-metal/is_none'], function (exports, _emberMetalProperty_get, _emberMetalIs_none) {
/**
@@ -4928,11 +4928,11 @@
@param {Object} obj Value to test
@return {Boolean}
@public
*/
function isEmpty(obj) {
- var none = (0, _emberMetalIs_none.default)(obj);
+ var none = (0, _emberMetalIs_none["default"])(obj);
if (none) {
return none;
}
if (typeof obj.size === 'number') {
@@ -4960,11 +4960,11 @@
}
return false;
}
- exports.default = isEmpty;
+ exports["default"] = isEmpty;
});
enifed("ember-metal/is_none", ["exports"], function (exports) {
/**
Returns true if the passed value is null or undefined. This avoids errors
from JSLint complaining about use of ==, which can be technically
@@ -4987,14 +4987,14 @@
*/
function isNone(obj) {
return obj === null || obj === undefined;
}
- exports.default = isNone;
+ exports["default"] = isNone;
});
enifed('ember-metal/is_present', ['exports', 'ember-metal/is_blank'], function (exports, _emberMetalIs_blank) {
- exports.default = isPresent;
+ exports["default"] = isPresent;
/**
A value is present if it not `isBlank`.
```javascript
@@ -5019,11 +5019,11 @@
@since 1.8.0
@public
*/
function isPresent(obj) {
- return !(0, _emberMetalIs_blank.default)(obj);
+ return !(0, _emberMetalIs_blank["default"])(obj);
}
});
enifed('ember-metal/keys', ['exports', 'ember-metal/platform/define_property'], function (exports, _emberMetalPlatformDefine_property) {
/**
@@ -5072,11 +5072,11 @@
return result;
};
})();
}
- exports.default = keys;
+ exports["default"] = keys;
});
enifed("ember-metal/libraries", ["exports", "ember-metal/core", "ember-metal/enumerable_utils"], function (exports, _emberMetalCore, _emberMetalEnumerable_utils) {
/**
Helper class that allows you to register your library with Ember.
@@ -5113,11 +5113,11 @@
if (isCoreLibrary) {
index = this._coreLibIndex++;
}
this._registry.splice(index, 0, { name: name, version: version });
} else {
- _emberMetalCore.default.warn("Library \"" + name + "\" is already registered with Ember.");
+ _emberMetalCore["default"].warn("Library \"" + name + "\" is already registered with Ember.");
}
},
registerCoreLibrary: function (name, version) {
this.register(name, version, true);
@@ -5132,35 +5132,35 @@
this._registry.splice(index, 1);
}
},
each: function (callback) {
- _emberMetalCore.default.deprecate("Using Ember.libraries.each() is deprecated. Access to a list of registered libraries is currently a private API. If you are not knowingly accessing this method, your out-of-date Ember Inspector may be doing so.");
+ _emberMetalCore["default"].deprecate("Using Ember.libraries.each() is deprecated. Access to a list of registered libraries is currently a private API. If you are not knowingly accessing this method, your out-of-date Ember Inspector may be doing so.");
(0, _emberMetalEnumerable_utils.forEach)(this._registry, function (lib) {
callback(lib.name, lib.version);
});
}
};
- if (_emberMetalCore.default.FEATURES.isEnabled("ember-libraries-isregistered")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("ember-libraries-isregistered")) {
Libraries.prototype.isRegistered = function (name) {
return !!this._getLibraryByName(name);
};
}
- exports.default = Libraries;
+ exports["default"] = Libraries;
});
enifed("ember-metal/logger", ["exports", "ember-metal/core", "ember-metal/error"], function (exports, _emberMetalCore, _emberMetalError) {
function K() {
return this;
}
function consoleMethod(name) {
var consoleObj, logToConsole;
- if (_emberMetalCore.default.imports.console) {
- consoleObj = _emberMetalCore.default.imports.console;
+ if (_emberMetalCore["default"].imports.console) {
+ consoleObj = _emberMetalCore["default"].imports.console;
} else if (typeof console !== "undefined") {
consoleObj = console;
}
var method = typeof consoleObj === "object" ? consoleObj[name] : null;
@@ -5188,11 +5188,11 @@
function assertPolyfill(test, message) {
if (!test) {
try {
// attempt to preserve the stack
- throw new _emberMetalError.default("assertion failed: " + message);
+ throw new _emberMetalError["default"]("assertion failed: " + message);
} catch (error) {
setTimeout(function () {
throw error;
}, 0);
}
@@ -5205,11 +5205,11 @@
@class Logger
@namespace Ember
@private
*/
- exports.default = {
+ exports["default"] = {
/**
Logs the arguments to the console.
You can pass as many arguments as you want and they will be joined together with a space.
```javascript
var foo = 1;
@@ -5305,11 +5305,11 @@
function missingNew(name) {
throw new TypeError("Constructor " + name + " requires 'new'");
}
function copyNull(obj) {
- var output = (0, _emberMetalPlatformCreate.default)(null);
+ var output = (0, _emberMetalPlatformCreate["default"])(null);
for (var prop in obj) {
// hasOwnPropery is not needed because obj is Object.create(null);
output[prop] = obj[prop];
}
@@ -5365,11 +5365,11 @@
/**
@method clear
@private
*/
clear: function () {
- this.presenceSet = (0, _emberMetalPlatformCreate.default)(null);
+ this.presenceSet = (0, _emberMetalPlatformCreate["default"])(null);
this.list = [];
this.size = 0;
},
/**
@@ -5401,22 +5401,22 @@
@private
*/
remove: function (obj, _guid) {
Ember.deprecate("Calling `OrderedSet.prototype.remove` has been deprecated, please use `OrderedSet.prototype.delete` instead.", this._silenceRemoveDeprecation);
- return this.delete(obj, _guid);
+ return this["delete"](obj, _guid);
},
/**
@since 1.8.0
@method delete
@param obj
@param _guid (optional and for internal use only)
@return {Boolean}
@private
*/
- delete: function (obj, _guid) {
+ "delete": function (obj, _guid) {
var guid = _guid || (0, _emberMetalUtils.guidFor)(obj);
var presenceSet = this.presenceSet;
var list = this.list;
if (presenceSet[guid] === true) {
@@ -5539,11 +5539,11 @@
*/
function Map() {
if (this instanceof this.constructor) {
this._keys = OrderedSet.create();
this._keys._silenceRemoveDeprecation = true;
- this._values = (0, _emberMetalPlatformCreate.default)(null);
+ this._values = (0, _emberMetalPlatformCreate["default"])(null);
this.size = 0;
} else {
missingNew("OrderedSet");
}
}
@@ -5626,32 +5626,32 @@
@private
*/
remove: function (key) {
Ember.deprecate("Calling `Map.prototype.remove` has been deprecated, please use `Map.prototype.delete` instead.");
- return this.delete(key);
+ return this["delete"](key);
},
/**
Removes a value from the map for an associated key.
@since 1.8.0
@method delete
@param {*} key
@return {Boolean} true if an item was removed, false otherwise
@private
*/
- delete: function (key) {
+ "delete": function (key) {
if (this.size === 0) {
return false;
}
// don't use ES6 "delete" because it will be annoying
// to use in browsers that are not ES6 friendly;
var keys = this._keys;
var values = this._values;
var guid = (0, _emberMetalUtils.guidFor)(key);
- if (keys.delete(key, guid)) {
+ if (keys["delete"](key, guid)) {
delete values[guid];
this.size = keys.size;
return true;
} else {
return false;
@@ -5711,11 +5711,11 @@
@method clear
@private
*/
clear: function () {
this._keys.clear();
- this._values = (0, _emberMetalPlatformCreate.default)(null);
+ this._values = (0, _emberMetalPlatformCreate["default"])(null);
this.size = 0;
},
/**
@method copy
@@ -5758,11 +5758,11 @@
} else {
return new Map();
}
};
- MapWithDefault.prototype = (0, _emberMetalPlatformCreate.default)(Map.prototype);
+ MapWithDefault.prototype = (0, _emberMetalPlatformCreate["default"])(Map.prototype);
MapWithDefault.prototype.constructor = MapWithDefault;
MapWithDefault.prototype._super$constructor = Map;
MapWithDefault.prototype._super$get = Map.prototype.get;
/**
@@ -5795,11 +5795,11 @@
return copyMap(this, new Constructor({
defaultValue: this.defaultValue
}));
};
- exports.default = Map;
+ exports["default"] = Map;
exports.OrderedSet = OrderedSet;
exports.Map = Map;
exports.MapWithDefault = MapWithDefault;
});
/**
@@ -5823,11 +5823,11 @@
Map is mocked out to look like an Ember object, so you can do
`Ember.Map.create()` for symmetry with other Ember classes.
*/
enifed('ember-metal/merge', ['exports', 'ember-metal/keys'], function (exports, _emberMetalKeys) {
- exports.default = merge;
+ exports["default"] = merge;
exports.assign = assign;
/**
Merge the contents of two objects together into the first object.
@@ -5849,11 +5849,11 @@
function merge(original, updates) {
if (!updates || typeof updates !== 'object') {
return original;
}
- var props = (0, _emberMetalKeys.default)(updates);
+ var props = (0, _emberMetalKeys["default"])(updates);
var prop;
var length = props.length;
for (var i = 0; i < length; i++) {
prop = props[i];
@@ -5872,11 +5872,11 @@
var arg = args[i];
if (!arg) {
continue;
}
- var updates = (0, _emberMetalKeys.default)(arg);
+ var updates = (0, _emberMetalKeys["default"])(arg);
for (var _i = 0, _l = updates.length; _i < _l; _i++) {
var prop = updates[_i];
original[prop] = arg[prop];
}
@@ -5936,11 +5936,11 @@
var m = (0, _emberMetalUtils.meta)(obj, true);
var ret = m.mixins;
if (!ret) {
ret = m.mixins = {};
} else if (!m.hasOwnProperty("mixins")) {
- ret = m.mixins = (0, _emberMetalPlatformCreate.default)(ret);
+ ret = m.mixins = (0, _emberMetalPlatformCreate["default"])(ret);
}
return ret;
}
function isMethod(obj) {
@@ -5999,11 +5999,11 @@
}
// Since multiple mixins may inherit from the same parent, we need
// to clone the computed property so that other mixins do not receive
// the wrapped version.
- property = (0, _emberMetalPlatformCreate.default)(property);
+ property = (0, _emberMetalPlatformCreate["default"])(property);
property._getter = (0, _emberMetalUtils.wrap)(property._getter, superProperty._getter);
if (superProperty._setter) {
if (property._setter) {
property._setter = (0, _emberMetalUtils.wrap)(property._setter, superProperty._setter);
} else {
@@ -6072,17 +6072,17 @@
}
function applyMergedProperties(obj, key, value, values) {
var baseValue = values[key] || obj[key];
- _emberMetalCore.default.assert("You passed in `" + JSON.stringify(value) + "` as the value for `" + key + "` but `" + key + "` cannot be an Array", !(0, _emberMetalUtils.isArray)(value));
+ _emberMetalCore["default"].assert("You passed in `" + JSON.stringify(value) + "` as the value for `" + key + "` but `" + key + "` cannot be an Array", !(0, _emberMetalUtils.isArray)(value));
if (!baseValue) {
return value;
}
- var newBase = (0, _emberMetalMerge.default)({}, baseValue);
+ var newBase = (0, _emberMetalMerge["default"])({}, baseValue);
var hasFunction = false;
for (var prop in value) {
if (!value.hasOwnProperty(prop)) {
continue;
@@ -6141,11 +6141,11 @@
delete values[keyName];
}
for (var i = 0, l = mixins.length; i < l; i++) {
currentMixin = mixins[i];
- _emberMetalCore.default.assert("Expected hash or Mixin instance, got " + Object.prototype.toString.call(currentMixin), typeof currentMixin === "object" && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== "[object Array]");
+ _emberMetalCore["default"].assert("Expected hash or Mixin instance, got " + Object.prototype.toString.call(currentMixin), typeof currentMixin === "object" && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== "[object Array]");
props = mixinProperties(m, currentMixin);
if (props === CONTINUE) {
continue;
}
@@ -6185,11 +6185,11 @@
if (IS_BINDING.test(key)) {
var bindings = m.bindings;
if (!bindings) {
bindings = m.bindings = {};
} else if (!m.hasOwnProperty("bindings")) {
- bindings = m.bindings = (0, _emberMetalPlatformCreate.default)(m.bindings);
+ bindings = m.bindings = (0, _emberMetalPlatformCreate["default"])(m.bindings);
}
bindings[key] = value;
}
}
@@ -6210,11 +6210,11 @@
(0, _emberMetalObserver.addObserver)(obj, key, null, didChange);
stream.subscribe(onNotify);
if (obj._streamBindingSubscriptions === undefined) {
- obj._streamBindingSubscriptions = (0, _emberMetalPlatformCreate.default)(null);
+ obj._streamBindingSubscriptions = (0, _emberMetalPlatformCreate["default"])(null);
}
obj._streamBindingSubscriptions[key] = onNotify;
}
@@ -6420,11 +6420,11 @@
@class Mixin
@namespace Ember
@public
*/
- exports.default = Mixin;
+ exports["default"] = Mixin;
function Mixin(args, properties) {
this.properties = properties;
var length = args && args.length;
@@ -6456,11 +6456,11 @@
};
Mixin.finishPartial = finishPartial;
// ES6TODO: this relies on a global state?
- _emberMetalCore.default.anyUnprocessedMixins = false;
+ _emberMetalCore["default"].anyUnprocessedMixins = false;
/**
@method create
@static
@param arguments*
@@ -6470,11 +6470,11 @@
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
// ES6TODO: this relies on a global state?
- _emberMetalCore.default.anyUnprocessedMixins = true;
+ _emberMetalCore["default"].anyUnprocessedMixins = true;
var M = this;
return new M(args, undefined);
};
var MixinPrototype = Mixin.prototype;
@@ -6499,11 +6499,11 @@
var mixins = this.mixins;
var idx;
for (idx = 0; idx < len; idx++) {
currentMixin = arguments[idx];
- _emberMetalCore.default.assert("Expected hash or Mixin instance, got " + Object.prototype.toString.call(currentMixin), typeof currentMixin === "object" && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== "[object Array]");
+ _emberMetalCore["default"].assert("Expected hash or Mixin instance, got " + Object.prototype.toString.call(currentMixin), typeof currentMixin === "object" && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== "[object Array]");
if (currentMixin instanceof Mixin) {
mixins.push(currentMixin);
} else {
mixins.push(new Mixin(undefined, currentMixin));
@@ -6647,11 +6647,11 @@
@for Ember
@private
*/
function required() {
- _emberMetalCore.default.deprecate("Ember.required is deprecated as its behavior is inconsistent and unreliable.", false);
+ _emberMetalCore["default"].deprecate("Ember.required is deprecated as its behavior is inconsistent and unreliable.", false);
return REQUIRED;
}
function Alias(methodName) {
this.isDescriptor = true;
@@ -6734,15 +6734,15 @@
}
paths = [];
for (var i = 0; i < _paths.length; ++i) {
- (0, _emberMetalExpand_properties.default)(_paths[i], addWatchedProperty);
+ (0, _emberMetalExpand_properties["default"])(_paths[i], addWatchedProperty);
}
if (typeof func !== "function") {
- throw new _emberMetalCore.default.Error("Ember.observer called without a function");
+ throw new _emberMetalCore["default"].Error("Ember.observer called without a function");
}
func.__ember_observes__ = paths;
return func;
}
@@ -6772,15 +6772,15 @@
@return func
@private
*/
function immediateObserver() {
- _emberMetalCore.default.deprecate("Usage of `Ember.immediateObserver` is deprecated, use `Ember.observer` instead.");
+ _emberMetalCore["default"].deprecate("Usage of `Ember.immediateObserver` is deprecated, use `Ember.observer` instead.");
for (var i = 0, l = arguments.length; i < l; i++) {
var arg = arguments[i];
- _emberMetalCore.default.assert("Immediate observers must observe internal properties only, not properties on other objects.", typeof arg !== "string" || arg.indexOf(".") === -1);
+ _emberMetalCore["default"].assert("Immediate observers must observe internal properties only, not properties on other objects.", typeof arg !== "string" || arg.indexOf(".") === -1);
}
return observer.apply(this, arguments);
}
@@ -6850,15 +6850,15 @@
}
paths = [];
for (var i = 0; i < _paths.length; ++i) {
- (0, _emberMetalExpand_properties.default)(_paths[i], addWatchedProperty);
+ (0, _emberMetalExpand_properties["default"])(_paths[i], addWatchedProperty);
}
if (typeof func !== "function") {
- throw new _emberMetalCore.default.Error("Ember.beforeObserver called without a function");
+ throw new _emberMetalCore["default"].Error("Ember.beforeObserver called without a function");
}
func.__ember_observesBefore__ = paths;
return func;
}
@@ -7018,11 +7018,11 @@
]
},
...
]
*/
- exports.default = ObserverSet;
+ exports["default"] = ObserverSet;
function ObserverSet() {
this.clear();
}
@@ -7078,36 +7078,36 @@
var IS_GLOBAL = /^[A-Z$]/;
var IS_GLOBAL_PATH = /^[A-Z$].*[\.]/;
var HAS_THIS = 'this.';
- var isGlobalCache = new _emberMetalCache.default(1000, function (key) {
+ var isGlobalCache = new _emberMetalCache["default"](1000, function (key) {
return IS_GLOBAL.test(key);
});
- var isGlobalPathCache = new _emberMetalCache.default(1000, function (key) {
+ var isGlobalPathCache = new _emberMetalCache["default"](1000, function (key) {
return IS_GLOBAL_PATH.test(key);
});
- var hasThisCache = new _emberMetalCache.default(1000, function (key) {
+ var hasThisCache = new _emberMetalCache["default"](1000, function (key) {
return key.lastIndexOf(HAS_THIS, 0) === 0;
});
- var firstDotIndexCache = new _emberMetalCache.default(1000, function (key) {
+ var firstDotIndexCache = new _emberMetalCache["default"](1000, function (key) {
return key.indexOf('.');
});
- var firstKeyCache = new _emberMetalCache.default(1000, function (path) {
+ var firstKeyCache = new _emberMetalCache["default"](1000, function (path) {
var index = firstDotIndexCache.get(path);
if (index === -1) {
return path;
} else {
return path.slice(0, index);
}
});
- var tailPathCache = new _emberMetalCache.default(1000, function (path) {
+ var tailPathCache = new _emberMetalCache["default"](1000, function (path) {
var index = firstDotIndexCache.get(path);
if (index !== -1) {
return path.slice(index + 1);
}
});
@@ -7237,20 +7237,20 @@
object = new Type();
}
if (properties !== undefined) {
- (0, _emberMetalPlatformDefine_properties.default)(object, properties);
+ (0, _emberMetalPlatformDefine_properties["default"])(object, properties);
}
return object;
};
} else {
create = Object.create;
}
- exports.default = create;
+ exports["default"] = create;
});
enifed("ember-metal/platform/define_properties", ["exports", "ember-metal/platform/define_property"], function (exports, _emberMetalPlatformDefine_property) {
var defineProperties = Object.defineProperties;
@@ -7267,11 +7267,11 @@
};
Object.defineProperties = defineProperties;
}
- exports.default = defineProperties;
+ exports["default"] = defineProperties;
});
enifed('ember-metal/platform/define_property', ['exports'], function (exports) {
/*globals Node */
/**
@@ -7439,11 +7439,11 @@
// DEFINING PROPERTIES API
//
function MANDATORY_SETTER_FUNCTION(name) {
return function SETTER_FUNCTION(value) {
- _emberMetalCore.default.assert("You must use Ember.set() to set the `" + name + "` property (of " + this + ") to `" + value + "`.", false);
+ _emberMetalCore["default"].assert("You must use Ember.set() to set the `" + name + "` property (of " + this + ") to `" + value + "`.", false);
};
}
function DEFAULT_GETTER_FUNCTION(name) {
return function GETTER_FUNCTION() {
@@ -7515,11 +7515,11 @@
}
if (desc instanceof Descriptor) {
value = desc;
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
if (watching && _emberMetalPlatformDefine_property.hasPropertyAccessors) {
(0, _emberMetalPlatformDefine_property.defineProperty)(obj, keyName, {
configurable: true,
enumerable: true,
writable: true,
@@ -7536,11 +7536,11 @@
}
} else {
if (desc == null) {
value = data;
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
if (watching && _emberMetalPlatformDefine_property.hasPropertyAccessors) {
meta.values[keyName] = data;
(0, _emberMetalPlatformDefine_property.defineProperty)(obj, keyName, {
configurable: true,
enumerable: true,
@@ -7581,12 +7581,12 @@
*/
enifed("ember-metal/property_events", ["exports", "ember-metal/utils", "ember-metal/events", "ember-metal/observer_set"], function (exports, _emberMetalUtils, _emberMetalEvents, _emberMetalObserver_set) {
var PROPERTY_DID_CHANGE = (0, _emberMetalUtils.symbol)("PROPERTY_DID_CHANGE");
exports.PROPERTY_DID_CHANGE = PROPERTY_DID_CHANGE;
- var beforeObserverSet = new _emberMetalObserver_set.default();
- var observerSet = new _emberMetalObserver_set.default();
+ var beforeObserverSet = new _emberMetalObserver_set["default"]();
+ var observerSet = new _emberMetalObserver_set["default"]();
var deferred = 0;
// ..........................................................
// PROPERTY CHANGES
//
@@ -7943,17 +7943,17 @@
return obj;
}
if (!keyName && "string" === typeof obj) {
keyName = obj;
- obj = _emberMetalCore.default.lookup;
+ obj = _emberMetalCore["default"].lookup;
}
- _emberMetalCore.default.assert("Cannot call get with " + keyName + " key.", !!keyName);
- _emberMetalCore.default.assert("Cannot call get with '" + keyName + "' on an undefined object.", obj !== undefined);
+ _emberMetalCore["default"].assert("Cannot call get with " + keyName + " key.", !!keyName);
+ _emberMetalCore["default"].assert("Cannot call get with '" + keyName + "' on an undefined object.", obj !== undefined);
- if ((0, _emberMetalIs_none.default)(obj)) {
+ if ((0, _emberMetalIs_none["default"])(obj)) {
return _getPath(obj, keyName);
}
if (obj && typeof obj[INTERCEPT_GET] === "function") {
var result = obj[INTERCEPT_GET](obj, keyName);
@@ -7972,11 +7972,11 @@
}
if (desc) {
return desc.get(obj, keyName);
} else {
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
if (_emberMetalPlatformDefine_property.hasPropertyAccessors && meta && meta.watching[keyName] > 0) {
ret = meta.values[keyName];
} else {
ret = obj[keyName];
}
@@ -8018,11 +8018,11 @@
if (hasThis) {
path = path.slice(5);
}
if (!target || isGlobal) {
- target = _emberMetalCore.default.lookup;
+ target = _emberMetalCore["default"].lookup;
}
if (isGlobal && (0, _emberMetalPath_cache.isPath)(path)) {
key = path.match(FIRST_KEY)[0];
target = get(target, key);
@@ -8035,11 +8035,11 @@
return [target, path];
}
function validateIsPath(path) {
if (!path || path.length === 0) {
- throw new _emberMetalError.default("Object in path " + path + " could not be found or was destroyed.");
+ throw new _emberMetalError["default"]("Object in path " + path + " could not be found or was destroyed.");
}
}
function _getPath(root, path) {
var hasThis, parts, tuple, idx, len;
@@ -8072,11 +8072,11 @@
return defaultValue;
}
return value;
}
- exports.default = get;
+ exports["default"] = get;
});
/**
@module ember-metal
*/
enifed("ember-metal/property_set", ["exports", "ember-metal/core", "ember-metal/property_get", "ember-metal/property_events", "ember-metal/properties", "ember-metal/error", "ember-metal/path_cache", "ember-metal/platform/define_property", "ember-metal/utils"], function (exports, _emberMetalCore, _emberMetalProperty_get, _emberMetalProperty_events, _emberMetalProperties, _emberMetalError, _emberMetalPath_cache, _emberMetalPlatformDefine_property, _emberMetalUtils) {
@@ -8102,19 +8102,19 @@
@public
*/
function set(obj, keyName, value, tolerant) {
if (typeof obj === "string") {
- _emberMetalCore.default.assert("Path '" + obj + "' must be global if no obj is given.", (0, _emberMetalPath_cache.isGlobalPath)(obj));
+ _emberMetalCore["default"].assert("Path '" + obj + "' must be global if no obj is given.", (0, _emberMetalPath_cache.isGlobalPath)(obj));
value = keyName;
keyName = obj;
- obj = _emberMetalCore.default.lookup;
+ obj = _emberMetalCore["default"].lookup;
}
- _emberMetalCore.default.assert("Cannot call set with '" + keyName + "' key.", !!keyName);
+ _emberMetalCore["default"].assert("Cannot call set with '" + keyName + "' key.", !!keyName);
- if (obj === _emberMetalCore.default.lookup) {
+ if (obj === _emberMetalCore["default"].lookup) {
return setPath(obj, keyName, value, tolerant);
}
// This path exists purely to implement backwards-compatible
// effects (specifically, setting a property on a view may
@@ -8136,12 +8136,12 @@
var isUnknown, currentValue;
if ((!obj || desc === undefined) && (0, _emberMetalPath_cache.isPath)(keyName)) {
return setPath(obj, keyName, value, tolerant);
}
- _emberMetalCore.default.assert("You need to provide an object and key to `set`.", !!obj && keyName !== undefined);
- _emberMetalCore.default.assert("calling set on destroyed object", !obj.isDestroyed);
+ _emberMetalCore["default"].assert("You need to provide an object and key to `set`.", !!obj && keyName !== undefined);
+ _emberMetalCore["default"].assert("calling set on destroyed object", !obj.isDestroyed);
if (desc) {
desc.set(obj, keyName, value);
} else {
@@ -8156,11 +8156,11 @@
// `setUnknownProperty` method exists on the object
if (isUnknown && "function" === typeof obj.setUnknownProperty) {
obj.setUnknownProperty(keyName, value);
} else if (meta && meta.watching[keyName] > 0) {
if (meta.proto !== obj) {
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
currentValue = meta.values[keyName];
} else {
currentValue = obj[keyName];
}
@@ -8169,11 +8169,11 @@
}
}
// only trigger a change if the value has changed
if (value !== currentValue) {
(0, _emberMetalProperty_events.propertyWillChange)(obj, keyName);
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
if (currentValue === undefined && !(keyName in obj) || !Object.prototype.propertyIsEnumerable.call(obj, keyName)) {
(0, _emberMetalProperties.defineProperty)(obj, keyName, null, value); // setup mandatory setter
} else {
meta.values[keyName] = value;
@@ -8210,18 +8210,18 @@
if (path !== "this") {
root = (0, _emberMetalProperty_get._getPath)(root, path);
}
if (!keyName || keyName.length === 0) {
- throw new _emberMetalError.default("Property set failed: You passed an empty path");
+ throw new _emberMetalError["default"]("Property set failed: You passed an empty path");
}
if (!root) {
if (tolerant) {
return;
} else {
- throw new _emberMetalError.default("Property set failed: object in path \"" + path + "\" could not be found or was destroyed.");
+ throw new _emberMetalError["default"]("Property set failed: object in path \"" + path + "\" could not be found or was destroyed.");
}
}
return set(root, keyName, value);
}
@@ -8254,20 +8254,20 @@
function onEnd(current, next) {
run.currentRunLoop = next;
}
// ES6TODO: should Backburner become es6?
- var backburner = new _backburner.default(['sync', 'actions', 'destroy'], {
+ var backburner = new _backburner["default"](['sync', 'actions', 'destroy'], {
GUID_KEY: _emberMetalUtils.GUID_KEY,
sync: {
before: _emberMetalProperty_events.beginPropertyChanges,
after: _emberMetalProperty_events.endPropertyChanges
},
defaultQueue: 'actions',
onBegin: onBegin,
onEnd: onEnd,
- onErrorTarget: _emberMetalCore.default,
+ onErrorTarget: _emberMetalCore["default"],
onErrorMethod: 'onerror'
});
// ..........................................................
// run - this is ideally the only public API the dev sees
@@ -8299,11 +8299,11 @@
then it will be looked up on the passed target.
@param {Object} [args*] Any additional arguments you wish to pass to the method.
@return {Object} return value from invoking the passed function.
@public
*/
- exports.default = run;
+ exports["default"] = run;
function run() {
return backburner.run.apply(backburner, arguments);
}
@@ -8891,11 +8891,11 @@
};
// Make sure it's not an autorun during testing
function checkAutoRun() {
if (!run.currentRunLoop) {
- _emberMetalCore.default.assert('You have turned on testing mode, which disabled the run-loop\'s autorun.\n You will need to wrap any code with asynchronous side-effects in a run', !_emberMetalCore.default.testing);
+ _emberMetalCore["default"].assert('You have turned on testing mode, which disabled the run-loop\'s autorun.\n You will need to wrap any code with asynchronous side-effects in a run', !_emberMetalCore["default"].testing);
}
}
/**
Add a new named queue after the specified queue.
@@ -8913,11 +8913,11 @@
}
};
});
/* queue, target, method */ /*target, method*/ /*queue, target, method*/
enifed("ember-metal/set_properties", ["exports", "ember-metal/property_events", "ember-metal/property_set", "ember-metal/keys"], function (exports, _emberMetalProperty_events, _emberMetalProperty_set, _emberMetalKeys) {
- exports.default = setProperties;
+ exports["default"] = setProperties;
/**
Set a list of properties on an object. These properties are set inside
a single `beginPropertyChanges` and `endPropertyChanges` batch, so
observers will be buffered.
@@ -8942,11 +8942,11 @@
function setProperties(obj, properties) {
if (!properties || typeof properties !== "object") {
return obj;
}
(0, _emberMetalProperty_events.changeProperties)(function () {
- var props = (0, _emberMetalKeys.default)(properties);
+ var props = (0, _emberMetalKeys["default"])(properties);
var propertyName;
for (var i = 0, l = props.length; i < l; i++) {
propertyName = props[i];
@@ -8955,11 +8955,11 @@
});
return obj;
}
});
enifed("ember-metal/streams/conditional", ["exports", "ember-metal/streams/stream", "ember-metal/streams/utils", "ember-metal/platform/create"], function (exports, _emberMetalStreamsStream, _emberMetalStreamsUtils, _emberMetalPlatformCreate) {
- exports.default = conditional;
+ exports["default"] = conditional;
function conditional(test, consequent, alternate) {
if ((0, _emberMetalStreamsUtils.isStream)(test)) {
return new ConditionalStream(test, consequent, alternate);
} else {
@@ -8978,11 +8978,11 @@
this.test = test;
this.consequent = consequent;
this.alternate = alternate;
}
- ConditionalStream.prototype = (0, _emberMetalPlatformCreate.default)(_emberMetalStreamsStream.default.prototype);
+ ConditionalStream.prototype = (0, _emberMetalPlatformCreate["default"])(_emberMetalStreamsStream["default"].prototype);
ConditionalStream.prototype.compute = function () {
var oldTestResult = this.oldTestResult;
var newTestResult = !!(0, _emberMetalStreamsUtils.read)(this.test);
@@ -9020,22 +9020,22 @@
@class Dependency
@namespace Ember.streams
@constructor
*/
function Dependency(depender, dependee) {
- _emberMetalCore.default.assert("Dependency error: Depender must be a stream", (0, _emberMetalStreamsUtils.isStream)(depender));
+ _emberMetalCore["default"].assert("Dependency error: Depender must be a stream", (0, _emberMetalStreamsUtils.isStream)(depender));
this.next = null;
this.prev = null;
this.depender = depender;
this.dependee = dependee;
this.unsubscription = null;
}
- (0, _emberMetalMerge.default)(Dependency.prototype, {
+ (0, _emberMetalMerge["default"])(Dependency.prototype, {
subscribe: function () {
- _emberMetalCore.default.assert("Dependency error: Dependency tried to subscribe while already subscribed", !this.unsubscription);
+ _emberMetalCore["default"].assert("Dependency error: Dependency tried to subscribe while already subscribed", !this.unsubscription);
this.unsubscription = (0, _emberMetalStreamsUtils.subscribe)(this.dependee, this.depender.notify, this.depender);
},
unsubscribe: function () {
@@ -9082,18 +9082,18 @@
// this.unsubscribe();
// }
});
- exports.default = Dependency;
+ exports["default"] = Dependency;
});
enifed('ember-metal/streams/key-stream', ['exports', 'ember-metal/core', 'ember-metal/merge', 'ember-metal/platform/create', 'ember-metal/property_get', 'ember-metal/property_set', 'ember-metal/observer', 'ember-metal/streams/stream', 'ember-metal/streams/utils'], function (exports, _emberMetalCore, _emberMetalMerge, _emberMetalPlatformCreate, _emberMetalProperty_get, _emberMetalProperty_set, _emberMetalObserver, _emberMetalStreamsStream, _emberMetalStreamsUtils) {
function KeyStream(source, key) {
- _emberMetalCore.default.assert('KeyStream error: source must be a stream', (0, _emberMetalStreamsUtils.isStream)(source)); // TODO: This isn't necessary.
- _emberMetalCore.default.assert('KeyStream error: key must be a non-empty string', typeof key === 'string' && key.length > 0);
- _emberMetalCore.default.assert('KeyStream error: key must not have a \'.\'', key.indexOf('.') === -1);
+ _emberMetalCore["default"].assert('KeyStream error: source must be a stream', (0, _emberMetalStreamsUtils.isStream)(source)); // TODO: This isn't necessary.
+ _emberMetalCore["default"].assert('KeyStream error: key must be a non-empty string', typeof key === 'string' && key.length > 0);
+ _emberMetalCore["default"].assert('KeyStream error: key must not have a \'.\'', key.indexOf('.') === -1);
// used to get the original path for debugging and legacy purposes
var label = labelFor(source, key);
this.init(label);
@@ -9105,13 +9105,13 @@
function labelFor(source, key) {
return source.label ? source.label + '.' + key : key;
}
- KeyStream.prototype = (0, _emberMetalPlatformCreate.default)(_emberMetalStreamsStream.default.prototype);
+ KeyStream.prototype = (0, _emberMetalPlatformCreate["default"])(_emberMetalStreamsStream["default"].prototype);
- (0, _emberMetalMerge.default)(KeyStream.prototype, {
+ (0, _emberMetalMerge["default"])(KeyStream.prototype, {
compute: function () {
var object = this.sourceDep.getValue();
if (object) {
return (0, _emberMetalProperty_get.get)(object, this.key);
}
@@ -9127,11 +9127,11 @@
setSource: function (source) {
this.sourceDep.replace(source);
this.notify();
},
- _super$revalidate: _emberMetalStreamsStream.default.prototype.revalidate,
+ _super$revalidate: _emberMetalStreamsStream["default"].prototype.revalidate,
revalidate: function (value) {
this._super$revalidate(value);
var object = this.sourceDep.getValue();
@@ -9143,11 +9143,11 @@
this.observedObject = object;
}
}
},
- _super$deactivate: _emberMetalStreamsStream.default.prototype.deactivate,
+ _super$deactivate: _emberMetalStreamsStream["default"].prototype.deactivate,
_clearObservedObject: function () {
if (this.observedObject) {
(0, _emberMetalObserver.removeObserver)(this.observedObject, this.key, this, this.notify);
this.observedObject = null;
@@ -9158,22 +9158,22 @@
this._super$deactivate();
this._clearObservedObject();
}
});
- exports.default = KeyStream;
+ exports["default"] = KeyStream;
});
enifed("ember-metal/streams/proxy-stream", ["exports", "ember-metal/merge", "ember-metal/streams/stream", "ember-metal/platform/create"], function (exports, _emberMetalMerge, _emberMetalStreamsStream, _emberMetalPlatformCreate) {
function ProxyStream(source, label) {
this.init(label);
this.sourceDep = this.addMutableDependency(source);
}
- ProxyStream.prototype = (0, _emberMetalPlatformCreate.default)(_emberMetalStreamsStream.default.prototype);
+ ProxyStream.prototype = (0, _emberMetalPlatformCreate["default"])(_emberMetalStreamsStream["default"].prototype);
- (0, _emberMetalMerge.default)(ProxyStream.prototype, {
+ (0, _emberMetalMerge["default"])(ProxyStream.prototype, {
compute: function () {
return this.sourceDep.getValue();
},
setValue: function (value) {
@@ -9184,11 +9184,11 @@
this.sourceDep.replace(source);
this.notify();
}
});
- exports.default = ProxyStream;
+ exports["default"] = ProxyStream;
});
enifed("ember-metal/streams/stream", ["exports", "ember-metal/core", "ember-metal/platform/create", "ember-metal/path_cache", "ember-metal/observer", "ember-metal/streams/utils", "ember-metal/streams/subscriber", "ember-metal/streams/dependency"], function (exports, _emberMetalCore, _emberMetalPlatformCreate, _emberMetalPath_cache, _emberMetalObserver, _emberMetalStreamsUtils, _emberMetalStreamsSubscriber, _emberMetalStreamsDependency) {
/**
@module ember-metal
@@ -9224,21 +9224,21 @@
this.dependencyTail = null;
this.observedProxy = null;
},
_makeChildStream: function (key) {
- KeyStream = KeyStream || _emberMetalCore.default.__loader.require("ember-metal/streams/key-stream").default;
+ KeyStream = KeyStream || _emberMetalCore["default"].__loader.require("ember-metal/streams/key-stream")["default"];
return new KeyStream(this, key);
},
removeChild: function (key) {
delete this.children[key];
},
getKey: function (key) {
if (this.children === undefined) {
- this.children = (0, _emberMetalPlatformCreate.default)(null);
+ this.children = (0, _emberMetalPlatformCreate["default"])(null);
}
var keyStream = this.children[key];
if (keyStream === undefined) {
@@ -9252,11 +9252,11 @@
get: function (path) {
var firstKey = (0, _emberMetalPath_cache.getFirstKey)(path);
var tailPath = (0, _emberMetalPath_cache.getTailPath)(path);
if (this.children === undefined) {
- this.children = (0, _emberMetalPlatformCreate.default)(null);
+ this.children = (0, _emberMetalPlatformCreate["default"])(null);
}
var keyStream = this.children[firstKey];
if (keyStream === undefined) {
@@ -9305,11 +9305,11 @@
return this.cache;
},
addMutableDependency: function (object) {
- var dependency = new _emberMetalStreamsDependency.default(this, object);
+ var dependency = new _emberMetalStreamsDependency["default"](this, object);
if (this.isActive) {
dependency.subscribe();
}
@@ -9364,11 +9364,11 @@
revalidate: function (value) {
if (value !== this.observedProxy) {
this._clearObservedProxy();
- ProxyMixin = ProxyMixin || _emberMetalCore.default.__loader.require("ember-runtime/mixins/-proxy").default;
+ ProxyMixin = ProxyMixin || _emberMetalCore["default"].__loader.require("ember-runtime/mixins/-proxy")["default"];
if (ProxyMixin.detect(value)) {
(0, _emberMetalObserver.addObserver)(value, "content", this, this.notify);
this.observedProxy = value;
}
@@ -9404,13 +9404,13 @@
this.notifySubscribers(callbackToSkip, contextToSkip);
}
},
subscribe: function (callback, context) {
- _emberMetalCore.default.assert("You tried to subscribe to a stream but the callback provided was not a function.", typeof callback === "function");
+ _emberMetalCore["default"].assert("You tried to subscribe to a stream but the callback provided was not a function.", typeof callback === "function");
- var subscriber = new _emberMetalStreamsSubscriber.default(callback, context, this);
+ var subscriber = new _emberMetalStreamsSubscriber["default"](callback, context, this);
if (this.subscriberHead === null) {
this.subscriberHead = this.subscriberTail = subscriber;
} else {
var tail = this.subscriberTail;
tail.next = subscriber;
@@ -9503,11 +9503,11 @@
} else {
return label;
}
}
- exports.default = Stream;
+ exports["default"] = Stream;
});
enifed("ember-metal/streams/subscriber", ["exports", "ember-metal/merge"], function (exports, _emberMetalMerge) {
/**
@module ember-metal
@@ -9524,11 +9524,11 @@
this.prev = null;
this.callback = callback;
this.context = context;
}
- (0, _emberMetalMerge.default)(Subscriber.prototype, {
+ (0, _emberMetalMerge["default"])(Subscriber.prototype, {
removeFrom: function (stream) {
var next = this.next;
var prev = this.prev;
if (prev) {
@@ -9545,11 +9545,11 @@
stream.maybeDeactivate();
}
});
- exports.default = Subscriber;
+ exports["default"] = Subscriber;
});
enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports, _stream) {
exports.isStream = isStream;
exports.subscribe = subscribe;
exports.unsubscribe = unsubscribe;
@@ -9750,11 +9750,11 @@
// TODO: Create subclass ConcatStream < Stream. Defer
// subscribing to streams until the value() is called.
var hasStream = scanArray(array);
if (hasStream) {
var i, l;
- var stream = new _stream.default(function () {
+ var stream = new _stream["default"](function () {
return concat(readArray(array), separator);
}, function () {
var labels = labelsFor(array);
return 'concat([' + labels.join(', ') + ']; separator=' + inspect(separator) + ')';
});
@@ -9814,11 +9814,11 @@
return String(value);
}
}
function or(first, second) {
- var stream = new _stream.default(function () {
+ var stream = new _stream["default"](function () {
return first.value() || second.value();
}, function () {
return '' + labelFor(first) + ' || ' + labelFor(second);
});
@@ -9836,11 +9836,11 @@
}
function zip(streams, callback, label) {
Ember.assert('Must call zip with a label', !!label);
- var stream = new _stream.default(function () {
+ var stream = new _stream["default"](function () {
var array = readArray(streams);
return callback ? callback(array) : array;
}, function () {
return '' + label + '(' + labelsFor(streams) + ')';
});
@@ -9853,11 +9853,11 @@
}
function zipHash(object, callback, label) {
Ember.assert('Must call zipHash with a label', !!label);
- var stream = new _stream.default(function () {
+ var stream = new _stream["default"](function () {
var hash = readHash(object);
return callback ? callback(hash) : hash;
}, function () {
return '' + label + '(' + labelsForObject(object) + ')';
});
@@ -9903,11 +9903,11 @@
*/
function chain(value, fn, label) {
Ember.assert('Must call chain with a label', !!label);
if (isStream(value)) {
- var stream = new _stream.default(fn, function () {
+ var stream = new _stream["default"](fn, function () {
return '' + label + '(' + labelFor(value) + ')';
});
stream.addDependency(value);
return stream;
} else {
@@ -10258,11 +10258,11 @@
}
// Placeholder for non-writable metas.
var EMPTY_META = new Meta(null);
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
EMPTY_META.values = {};
}
}
@@ -10299,11 +10299,11 @@
}
}
ret = new Meta(obj);
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
ret.values = {};
}
}
@@ -10313,19 +10313,19 @@
obj.__defineNonEnumerable(EMBER_META_PROPERTY);
} else {
(0, _emberMetalPlatformDefine_property.defineProperty)(obj, "__ember_meta__", META_DESC);
}
- ret = (0, _emberMetalPlatformCreate.default)(ret);
- ret.watching = (0, _emberMetalPlatformCreate.default)(ret.watching);
+ ret = (0, _emberMetalPlatformCreate["default"])(ret);
+ ret.watching = (0, _emberMetalPlatformCreate["default"])(ret.watching);
ret.cache = undefined;
ret.cacheMeta = undefined;
ret.source = obj;
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
- ret.values = (0, _emberMetalPlatformCreate.default)(ret.values);
+ ret.values = (0, _emberMetalPlatformCreate["default"])(ret.values);
}
}
obj["__ember_meta__"] = ret;
}
@@ -10376,11 +10376,11 @@
(or meta property) if one does not already exist or if it's
shared with its constructor
*/
function metaPath(obj, path, writable) {
- _emberMetalCore.default.deprecate("Ember.metaPath is deprecated and will be removed from future releases.");
+ _emberMetalCore["default"].deprecate("Ember.metaPath is deprecated and will be removed from future releases.");
var _meta = meta(obj, writable);
var keyName, value;
for (var i = 0, l = path.length; i < l; i++) {
keyName = path[i];
@@ -10393,11 +10393,11 @@
value = _meta[keyName] = { __ember_source__: obj };
} else if (value.__ember_source__ !== obj) {
if (!writable) {
return undefined;
}
- value = _meta[keyName] = (0, _emberMetalPlatformCreate.default)(value);
+ value = _meta[keyName] = (0, _emberMetalPlatformCreate["default"])(value);
value.__ember_source__ = obj;
}
_meta = value;
}
@@ -10588,11 +10588,11 @@
return finalResult === undefined ? result : finalResult;
};
}
var deprecatedTryFinally = function () {
- _emberMetalCore.default.deprecate("tryFinally is deprecated. Please use JavaScript's native try/finally.", false);
+ _emberMetalCore["default"].deprecate("tryFinally is deprecated. Please use JavaScript's native try/finally.", false);
return tryFinally.apply(this, arguments);
};
/**
Provides try/catch/finally functionality, while working
@@ -10677,11 +10677,11 @@
return finalResult === undefined ? result : finalResult;
};
}
var deprecatedTryCatchFinally = function () {
- _emberMetalCore.default.deprecate("tryCatchFinally is deprecated. Please use JavaScript's native try/catch/finally.", false);
+ _emberMetalCore["default"].deprecate("tryCatchFinally is deprecated. Please use JavaScript's native try/catch/finally.", false);
return tryCatchFinally.apply(this, arguments);
};
// ........................................
// TYPING & ARRAY MESSAGING
@@ -10876,21 +10876,21 @@
if ("function" === typeof obj.willWatchProperty) {
obj.willWatchProperty(keyName);
}
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
handleMandatorySetter(m, obj, keyName);
}
}
} else {
watching[keyName] = (watching[keyName] || 0) + 1;
}
}
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
var handleMandatorySetter = function handleMandatorySetter(m, obj, keyName) {
var descriptor = Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(obj, keyName);
var configurable = descriptor ? descriptor.configurable : true;
var isWritable = descriptor ? descriptor.writable : true;
var hasValue = descriptor ? "value" in descriptor : true;
@@ -10933,11 +10933,11 @@
if ("function" === typeof obj.didUnwatchProperty) {
obj.didUnwatchProperty(keyName);
}
- if (_emberMetalCore.default.FEATURES.isEnabled("mandatory-setter")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
if (!desc && _emberMetalPlatformDefine_property.hasPropertyAccessors && keyName in obj) {
(0, _emberMetalPlatformDefine_property.defineProperty)(obj, keyName, {
configurable: true,
enumerable: Object.prototype.propertyIsEnumerable.call(obj, keyName),
set: function (val) {
@@ -11110,46 +11110,46 @@
/**
@module ember-metal
*/
enifed("ember-template-compiler", ["exports", "ember-metal/core", "ember-template-compiler/system/precompile", "ember-template-compiler/system/compile", "ember-template-compiler/system/template", "ember-template-compiler/plugins", "ember-template-compiler/plugins/transform-each-in-to-block-params", "ember-template-compiler/plugins/transform-with-as-to-hash", "ember-template-compiler/plugins/transform-bind-attr-to-attributes", "ember-template-compiler/plugins/transform-each-into-collection", "ember-template-compiler/plugins/transform-single-arg-each", "ember-template-compiler/plugins/transform-old-binding-syntax", "ember-template-compiler/plugins/transform-old-class-binding-syntax", "ember-template-compiler/plugins/transform-item-class", "ember-template-compiler/plugins/transform-component-attrs-into-mut", "ember-template-compiler/plugins/transform-component-curly-to-readonly", "ember-template-compiler/plugins/transform-angle-bracket-components", "ember-template-compiler/plugins/transform-input-on-to-onEvent", "ember-template-compiler/plugins/deprecate-view-and-controller-paths", "ember-template-compiler/plugins/deprecate-view-helper", "ember-template-compiler/compat"], function (exports, _emberMetalCore, _emberTemplateCompilerSystemPrecompile, _emberTemplateCompilerSystemCompile, _emberTemplateCompilerSystemTemplate, _emberTemplateCompilerPlugins, _emberTemplateCompilerPluginsTransformEachInToBlockParams, _emberTemplateCompilerPluginsTransformWithAsToHash, _emberTemplateCompilerPluginsTransformBindAttrToAttributes, _emberTemplateCompilerPluginsTransformEachIntoCollection, _emberTemplateCompilerPluginsTransformSingleArgEach, _emberTemplateCompilerPluginsTransformOldBindingSyntax, _emberTemplateCompilerPluginsTransformOldClassBindingSyntax, _emberTemplateCompilerPluginsTransformItemClass, _emberTemplateCompilerPluginsTransformComponentAttrsIntoMut, _emberTemplateCompilerPluginsTransformComponentCurlyToReadonly, _emberTemplateCompilerPluginsTransformAngleBracketComponents, _emberTemplateCompilerPluginsTransformInputOnToOnEvent, _emberTemplateCompilerPluginsDeprecateViewAndControllerPaths, _emberTemplateCompilerPluginsDeprecateViewHelper, _emberTemplateCompilerCompat) {
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformWithAsToHash.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformEachInToBlockParams.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformBindAttrToAttributes.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformSingleArgEach.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformEachIntoCollection.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformOldBindingSyntax.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformOldClassBindingSyntax.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformItemClass.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformComponentAttrsIntoMut.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformComponentCurlyToReadonly.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformAngleBracketComponents.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformInputOnToOnEvent.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsDeprecateViewAndControllerPaths.default);
- (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsDeprecateViewHelper.default);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformWithAsToHash["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformEachInToBlockParams["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformBindAttrToAttributes["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformSingleArgEach["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformEachIntoCollection["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformOldBindingSyntax["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformOldClassBindingSyntax["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformItemClass["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformComponentAttrsIntoMut["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformComponentCurlyToReadonly["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformAngleBracketComponents["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformInputOnToOnEvent["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsDeprecateViewAndControllerPaths["default"]);
+ (0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsDeprecateViewHelper["default"]);
- exports._Ember = _emberMetalCore.default;
- exports.precompile = _emberTemplateCompilerSystemPrecompile.default;
- exports.compile = _emberTemplateCompilerSystemCompile.default;
- exports.template = _emberTemplateCompilerSystemTemplate.default;
+ exports._Ember = _emberMetalCore["default"];
+ exports.precompile = _emberTemplateCompilerSystemPrecompile["default"];
+ exports.compile = _emberTemplateCompilerSystemCompile["default"];
+ exports.template = _emberTemplateCompilerSystemTemplate["default"];
exports.registerPlugin = _emberTemplateCompilerPlugins.registerPlugin;
});
// used for adding Ember.Handlebars.compile for backwards compat
enifed("ember-template-compiler/compat", ["exports", "ember-metal/core", "ember-template-compiler/compat/precompile", "ember-template-compiler/system/compile", "ember-template-compiler/system/template"], function (exports, _emberMetalCore, _emberTemplateCompilerCompatPrecompile, _emberTemplateCompilerSystemCompile, _emberTemplateCompilerSystemTemplate) {
- var EmberHandlebars = _emberMetalCore.default.Handlebars = _emberMetalCore.default.Handlebars || {};
+ var EmberHandlebars = _emberMetalCore["default"].Handlebars = _emberMetalCore["default"].Handlebars || {};
- EmberHandlebars.precompile = _emberTemplateCompilerCompatPrecompile.default;
- EmberHandlebars.compile = _emberTemplateCompilerSystemCompile.default;
- EmberHandlebars.template = _emberTemplateCompilerSystemTemplate.default;
+ EmberHandlebars.precompile = _emberTemplateCompilerCompatPrecompile["default"];
+ EmberHandlebars.compile = _emberTemplateCompilerSystemCompile["default"];
+ EmberHandlebars.template = _emberTemplateCompilerSystemTemplate["default"];
});
enifed('ember-template-compiler/compat/precompile', ['exports', 'ember-template-compiler/system/compile_options'], function (exports, _emberTemplateCompilerSystemCompile_options) {
var compile, compileSpec;
- exports.default = function (string) {
+ exports["default"] = function (string) {
if ((!compile || !compileSpec) && Ember.__loader.registry['htmlbars-compiler/compiler']) {
var Compiler = requireModule('htmlbars-compiler/compiler');
compile = Compiler.compile;
compileSpec = Compiler.compileSpec;
@@ -11160,11 +11160,11 @@
}
var asObject = arguments[1] === undefined ? true : arguments[1];
var compileFunc = asObject ? compile : compileSpec;
- return compileFunc(string, (0, _emberTemplateCompilerSystemCompile_options.default)());
+ return compileFunc(string, (0, _emberTemplateCompilerSystemCompile_options["default"])());
};
});
/**
@module ember
@submodule ember-template-compiler
@@ -11197,11 +11197,11 @@
}
plugins[type].push(Plugin);
}
- exports.default = plugins;
+ exports["default"] = plugins;
});
enifed("ember-template-compiler/plugins/deprecate-view-and-controller-paths", ["exports", "ember-metal/core", "ember-template-compiler/system/calculate-location-display"], function (exports, _emberMetalCore, _emberTemplateCompilerSystemCalculateLocationDisplay) {
function DeprecateViewAndControllerPaths(options) {
// set later within HTMLBars to the syntax package
@@ -11253,16 +11253,16 @@
deprecatePath(moduleName, node, path);
}
}
function deprecatePath(moduleName, node, path) {
- _emberMetalCore.default.deprecate("Using `{{" + (path && path.type === "PathExpression" && path.parts[0]) + "}}` or any path based on it " + (0, _emberTemplateCompilerSystemCalculateLocationDisplay.default)(moduleName, node.loc) + "has been deprecated.", function deprecatePath_test() {
+ _emberMetalCore["default"].deprecate("Using `{{" + (path && path.type === "PathExpression" && path.parts[0]) + "}}` or any path based on it " + (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.loc) + "has been deprecated.", function deprecatePath_test() {
var noDeprecate = true;
var viewKeyword = path && path.type === "PathExpression" && path.parts && path.parts[0];
if (viewKeyword === "view") {
- noDeprecate = _emberMetalCore.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT;
+ noDeprecate = _emberMetalCore["default"].ENV._ENABLE_LEGACY_VIEW_SUPPORT;
} else if (viewKeyword === "controller") {
noDeprecate = false;
}
return noDeprecate;
@@ -11271,11 +11271,11 @@
function validate(node) {
return node.type === "MustacheStatement" || node.type === "BlockStatement";
}
- exports.default = DeprecateViewAndControllerPaths;
+ exports["default"] = DeprecateViewAndControllerPaths;
});
enifed("ember-template-compiler/plugins/deprecate-view-helper", ["exports", "ember-metal/core", "ember-template-compiler/system/calculate-location-display"], function (exports, _emberMetalCore, _emberTemplateCompilerSystemCalculateLocationDisplay) {
function DeprecateViewHelper(options) {
// set later within HTMLBars to the syntax package
@@ -11287,11 +11287,11 @@
@private
@method transform
@param {AST} ast The AST to be transformed.
*/
DeprecateViewHelper.prototype.transform = function DeprecateViewHelper_transform(ast) {
- if (!!_emberMetalCore.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT) {
+ if (!!_emberMetalCore["default"].ENV._ENABLE_LEGACY_VIEW_SUPPORT) {
return ast;
}
var walker = new this.syntax.Walker();
var moduleName = this.options && this.options.moduleName;
@@ -11312,23 +11312,23 @@
if (!paramValue) {
return;
} else if (paramValue === "select") {
deprecateSelect(moduleName, node);
} else {
- _emberMetalCore.default.deprecate("Using the `{{view \"string\"}}` helper is deprecated. " + (0, _emberTemplateCompilerSystemCalculateLocationDisplay.default)(moduleName, node.loc), false, { url: "http://emberjs.com/deprecations/v1.x#toc_ember-view", id: "view.helper" });
+ _emberMetalCore["default"].deprecate("Using the `{{view \"string\"}}` helper is deprecated. " + (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.loc), false, { url: "http://emberjs.com/deprecations/v1.x#toc_ember-view", id: "view.helper" });
}
}
function deprecateSelect(moduleName, node) {
- _emberMetalCore.default.deprecate("Using `{{view \"select\"}}` is deprecated. " + (0, _emberTemplateCompilerSystemCalculateLocationDisplay.default)(moduleName, node.loc), false, { url: "http://emberjs.com/deprecations/v1.x#toc_ember-select", id: "view.helper.select" });
+ _emberMetalCore["default"].deprecate("Using `{{view \"select\"}}` is deprecated. " + (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.loc), false, { url: "http://emberjs.com/deprecations/v1.x#toc_ember-select", id: "view.helper.select" });
}
function validate(node) {
return (node.type === "MustacheStatement" || node.type === "BlockStatement") && node.path.parts[0] === "view";
}
- exports.default = DeprecateViewHelper;
+ exports["default"] = DeprecateViewHelper;
});
enifed('ember-template-compiler/plugins/transform-angle-bracket-components', ['exports'], function (exports) {
function TransformAngleBracketComponents() {
// set later within HTMLBars to the syntax package
this.syntax = null;
@@ -11355,11 +11355,11 @@
function validate(node) {
return node.type === 'ComponentNode';
}
- exports.default = TransformAngleBracketComponents;
+ exports["default"] = TransformAngleBracketComponents;
});
enifed("ember-template-compiler/plugins/transform-bind-attr-to-attributes", ["exports", "ember-metal/core", "ember-template-compiler/system/string", "ember-template-compiler/system/calculate-location-display"], function (exports, _emberMetalCore, _emberTemplateCompilerSystemString, _emberTemplateCompilerSystemCalculateLocationDisplay) {
/**
An HTMLBars AST transformation that replaces all instances of
@@ -11435,22 +11435,22 @@
case "PathExpression":
return this.parseClasses(value.original);
case "SubExpression":
return b.mustache(value.path, value.params, value.hash);
default:
- _emberMetalCore.default.assert("Unsupported attribute value type: " + value.type);
+ _emberMetalCore["default"].assert("Unsupported attribute value type: " + value.type);
}
} else {
switch (value.type) {
case "StringLiteral":
return b.mustache(b.path(value.value));
case "PathExpression":
return b.mustache(value);
case "SubExpression":
return b.mustache(value.path, value.params, value.hash);
default:
- _emberMetalCore.default.assert("Unsupported attribute value type: " + value.type);
+ _emberMetalCore["default"].assert("Unsupported attribute value type: " + value.type);
}
}
};
TransformBindAttrToAttributes.prototype.parseClasses = function parseClasses(value) {
@@ -11495,21 +11495,21 @@
case 3:
// Before: {{bind-attr class="some.path:foo:bar ..."}}
// After: class="{{if some.path "foo" "bar"}} ..."
return b.sexpr(b.path("if"), [b.path(parts[0]), b.string(parts[1]), b.string(parts[2])]);
default:
- _emberMetalCore.default.assert("Unsupported bind-attr class syntax: `" + value + "`");
+ _emberMetalCore["default"].assert("Unsupported bind-attr class syntax: `" + value + "`");
}
};
function isBindAttrModifier(modifier, moduleName) {
var name = modifier.path.original;
- var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay.default)(moduleName, modifier.path.loc);
+ var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, modifier.path.loc);
if (name === "bind-attr" || name === "bindAttr") {
- _emberMetalCore.default.deprecate("The `" + name + "` helper " + moduleInfo + "is deprecated in favor of " + "HTMLBars-style bound attributes.");
+ _emberMetalCore["default"].deprecate("The `" + name + "` helper " + moduleInfo + "is deprecated in favor of " + "HTMLBars-style bound attributes.");
return true;
} else {
return false;
}
}
@@ -11518,24 +11518,24 @@
for (var i = 0; i < element.attributes.length; i++) {
var attr = element.attributes[i];
if (attr.name === name) {
if (name === "class") {
- _emberMetalCore.default.assert("You cannot set `class` manually and via `{{bind-attr}}` helper " + "on the same element. Please use `{{bind-attr}}`'s `:static-class` " + "syntax instead.");
+ _emberMetalCore["default"].assert("You cannot set `class` manually and via `{{bind-attr}}` helper " + "on the same element. Please use `{{bind-attr}}`'s `:static-class` " + "syntax instead.");
} else {
- _emberMetalCore.default.assert("You cannot set `" + name + "` manually and via `{{bind-attr}}` " + "helper on the same element.");
+ _emberMetalCore["default"].assert("You cannot set `" + name + "` manually and via `{{bind-attr}}` " + "helper on the same element.");
}
}
}
}
function dasherizeLastKey(path) {
var parts = path.split(".");
return (0, _emberTemplateCompilerSystemString.dasherize)(parts[parts.length - 1]);
}
- exports.default = TransformBindAttrToAttributes;
+ exports["default"] = TransformBindAttrToAttributes;
});
/**
@module ember
@submodule ember-htmlbars
*/
@@ -11581,11 +11581,11 @@
for (var i = 0, l = list.length; i < l; i++) {
callback(list[i]);
}
}
- exports.default = TransformComponentAttrsIntoMut;
+ exports["default"] = TransformComponentAttrsIntoMut;
});
enifed('ember-template-compiler/plugins/transform-component-curly-to-readonly', ['exports'], function (exports) {
function TransformComponentCurlyToReadonly() {
// set later within HTMLBars to the syntax package
this.syntax = null;
@@ -11628,11 +11628,11 @@
for (var i = 0, l = list.length; i < l; i++) {
callback(list[i]);
}
}
- exports.default = TransformComponentCurlyToReadonly;
+ exports["default"] = TransformComponentCurlyToReadonly;
});
enifed("ember-template-compiler/plugins/transform-each-in-to-block-params", ["exports", "ember-metal/core", "ember-template-compiler/system/calculate-location-display"], function (exports, _emberMetalCore, _emberTemplateCompilerSystemCalculateLocationDisplay) {
/**
@module ember
@submodule ember-htmlbars
@@ -11678,35 +11678,35 @@
var removedParams = node.params.splice(0, 2);
var keyword = removedParams[0].original;
var moduleInfo = undefined;
if (node.type === "BlockStatement") {
- moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay.default)(moduleName, node.program.loc);
+ moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.program.loc);
if (node.program.blockParams.length) {
throw new Error("You cannot use keyword (`{{#each foo in bar}}`) and block params (`{{#each bar as |foo|}}`) at the same time " + moduleInfo + ".");
}
node.program.blockParams = [keyword];
} else {
- moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay.default)(moduleName, node.loc);
+ moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.loc);
node.hash.pairs.push(b.pair("keyword", b.string(keyword)));
}
- _emberMetalCore.default.deprecate("Using the '{{#each item in model}}' form of the {{#each}} helper " + moduleInfo + "is deprecated. " + "Please use the block param form instead ('{{#each model as |item|}}').", false, { url: "http://emberjs.com/guides/deprecations/#toc_code-in-code-syntax-for-code-each-code" });
+ _emberMetalCore["default"].deprecate("Using the '{{#each item in model}}' form of the {{#each}} helper " + moduleInfo + "is deprecated. " + "Please use the block param form instead ('{{#each model as |item|}}').", false, { url: "http://emberjs.com/guides/deprecations/#toc_code-in-code-syntax-for-code-each-code" });
}
});
return ast;
};
function validate(node) {
return (node.type === "BlockStatement" || node.type === "MustacheStatement") && node.path.original === "each" && node.params.length === 3 && node.params[1].type === "PathExpression" && node.params[1].original === "in";
}
- exports.default = TransformEachInToBlockParams;
+ exports["default"] = TransformEachInToBlockParams;
});
enifed('ember-template-compiler/plugins/transform-each-in-to-hash', ['exports'], function (exports) {
/**
@module ember
@submodule ember-htmlbars
@@ -11770,14 +11770,14 @@
TransformEachInToHash.prototype.validate = function TransformEachInToHash_validate(node) {
return (node.type === 'BlockStatement' || node.type === 'MustacheStatement') && node.sexpr.path.original === 'each' && node.sexpr.params.length === 3 && node.sexpr.params[1].type === 'PathExpression' && node.sexpr.params[1].original === 'in';
};
- exports.default = TransformEachInToHash;
+ exports["default"] = TransformEachInToHash;
});
enifed('ember-template-compiler/plugins/transform-each-into-collection', ['exports', 'ember-metal/core', 'ember-template-compiler/system/calculate-location-display'], function (exports, _emberMetalCore, _emberTemplateCompilerSystemCalculateLocationDisplay) {
- exports.default = TransformEachIntoCollection;
+ exports["default"] = TransformEachIntoCollection;
function TransformEachIntoCollection(options) {
this.options = options;
this.syntax = null;
}
@@ -11791,13 +11791,13 @@
var legacyHashKey = validate(node);
if (!legacyHashKey) {
return;
}
- var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay.default)(moduleName, legacyHashKey.loc);
+ var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, legacyHashKey.loc);
- _emberMetalCore.default.deprecate('Using \'' + legacyHashKey.key + '\' with \'{{each}}\' ' + moduleInfo + 'is deprecated. Please refactor to a component.');
+ _emberMetalCore["default"].deprecate('Using \'' + legacyHashKey.key + '\' with \'{{each}}\' ' + moduleInfo + 'is deprecated. Please refactor to a component.');
var list = node.params.shift();
node.path = b.path('collection');
node.params.unshift(b.string('-legacy-each'));
@@ -11882,24 +11882,24 @@
if (pluginContext.validate(node)) {
var action = hashPairForKey(node.hash, "action");
var on = hashPairForKey(node.hash, "on");
var onEvent = hashPairForKey(node.hash, "onEvent");
var normalizedOn = on || onEvent;
- var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay.default)(moduleName, node.loc);
+ var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.loc);
if (normalizedOn && normalizedOn.value.type !== "StringLiteral") {
- _emberMetalCore.default.deprecate("Using a dynamic value for '#{normalizedOn.key}=' with the '{{input}}' helper " + moduleInfo + "is deprecated.");
+ _emberMetalCore["default"].deprecate("Using a dynamic value for '#{normalizedOn.key}=' with the '{{input}}' helper " + moduleInfo + "is deprecated.");
normalizedOn.key = "onEvent";
return; // exit early, as we cannot transform further
}
removeFromHash(node.hash, normalizedOn);
removeFromHash(node.hash, action);
if (!action) {
- _emberMetalCore.default.deprecate("Using '{{input " + normalizedOn.key + "=\"" + normalizedOn.value.value + "\" ...}}' without specifying an action " + moduleInfo + "will do nothing.");
+ _emberMetalCore["default"].deprecate("Using '{{input " + normalizedOn.key + "=\"" + normalizedOn.value.value + "\" ...}}' without specifying an action " + moduleInfo + "will do nothing.");
return; // exit early, if no action was available there is nothing to do
}
var specifiedOn = normalizedOn ? "" + normalizedOn.key + "=\"" + normalizedOn.value.value + "\" " : "";
@@ -11909,11 +11909,11 @@
normalizedOn.value.value = "key-press";
}
var expected = "" + (normalizedOn ? normalizedOn.value.value : "enter") + "=\"" + action.value.original + "\"";
- _emberMetalCore.default.deprecate("Using '{{input " + specifiedOn + "action=\"" + action.value.original + "\"}}' " + moduleInfo + "is deprecated. Please use '{{input " + expected + "}}' instead.");
+ _emberMetalCore["default"].deprecate("Using '{{input " + specifiedOn + "action=\"" + action.value.original + "\"}}' " + moduleInfo + "is deprecated. Please use '{{input " + expected + "}}' instead.");
if (!normalizedOn) {
normalizedOn = b.pair("onEvent", b.string("enter"));
}
node.hash.pairs.push(b.pair(normalizedOn.value.value, action.value));
@@ -11949,14 +11949,14 @@
}
hash.pairs = newPairs;
}
- exports.default = TransformInputOnToOnEvent;
+ exports["default"] = TransformInputOnToOnEvent;
});
enifed('ember-template-compiler/plugins/transform-item-class', ['exports'], function (exports) {
- exports.default = TransformItemClass;
+ exports["default"] = TransformItemClass;
function TransformItemClass() {
this.syntax = null;
}
@@ -12003,11 +12003,11 @@
callback(list[i]);
}
}
});
enifed('ember-template-compiler/plugins/transform-old-binding-syntax', ['exports', 'ember-metal/core', 'ember-template-compiler/system/calculate-location-display'], function (exports, _emberMetalCore, _emberTemplateCompilerSystemCalculateLocationDisplay) {
- exports.default = TransformOldBindingSyntax;
+ exports["default"] = TransformOldBindingSyntax;
function TransformOldBindingSyntax(options) {
this.syntax = null;
this.options = options;
}
@@ -12024,22 +12024,22 @@
each(node.hash.pairs, function (pair) {
var key = pair.key;
var value = pair.value;
- var sourceInformation = (0, _emberTemplateCompilerSystemCalculateLocationDisplay.default)(moduleName, pair.loc);
+ var sourceInformation = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, pair.loc);
if (key === 'classBinding') {
return;
}
- _emberMetalCore.default.assert('Setting \'attributeBindings\' via template helpers is not allowed ' + sourceInformation, key !== 'attributeBindings');
+ _emberMetalCore["default"].assert('Setting \'attributeBindings\' via template helpers is not allowed ' + sourceInformation, key !== 'attributeBindings');
if (key.substr(-7) === 'Binding') {
var newKey = key.slice(0, -7);
- _emberMetalCore.default.deprecate('You\'re using legacy binding syntax: ' + key + '=' + exprToString(value) + ' ' + sourceInformation + '. Please replace with ' + newKey + '=' + value.original);
+ _emberMetalCore["default"].deprecate('You\'re using legacy binding syntax: ' + key + '=' + exprToString(value) + ' ' + sourceInformation + '. Please replace with ' + newKey + '=' + value.original);
pair.key = newKey;
if (value.type === 'StringLiteral') {
pair.value = b.path(value.original);
}
@@ -12068,11 +12068,11 @@
return expr.original;
}
}
});
enifed('ember-template-compiler/plugins/transform-old-class-binding-syntax', ['exports'], function (exports) {
- exports.default = TransformOldClassBindingSyntax;
+ exports["default"] = TransformOldClassBindingSyntax;
function TransformOldClassBindingSyntax(options) {
this.syntax = null;
this.options = options;
}
@@ -12206,11 +12206,11 @@
return segments;
}
});
enifed('ember-template-compiler/plugins/transform-single-arg-each', ['exports'], function (exports) {
- exports.default = TransformSingleArgEach;
+ exports["default"] = TransformSingleArgEach;
function TransformSingleArgEach() {
this.syntax = null;
}
@@ -12274,11 +12274,11 @@
if (node.program && node.program.blockParams.length) {
throw new Error("You cannot use keyword (`{{with foo as bar}}`) and block params (`{{with foo as |bar|}}`) at the same time.");
}
- var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay.default)(moduleName, node.program.loc);
+ var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.program.loc);
Ember.deprecate("Using {{with}} without block syntax " + moduleInfo + "is deprecated. " + "Please use standard block form (`{{#with foo as |bar|}}`) " + "instead.", false, { url: "http://emberjs.com/deprecations/v1.x/#toc_code-as-code-sytnax-for-code-with-code" });
var removedParams = node.params.splice(1, 2);
var keyword = removedParams[1].original;
@@ -12291,18 +12291,18 @@
TransformWithAsToHash.prototype.validate = function TransformWithAsToHash_validate(node) {
return node.type === "BlockStatement" && node.path.original === "with" && node.params.length === 3 && node.params[1].type === "PathExpression" && node.params[1].original === "as";
};
- exports.default = TransformWithAsToHash;
+ exports["default"] = TransformWithAsToHash;
});
/**
@module ember
@submodule ember-htmlbars
*/
enifed('ember-template-compiler/system/calculate-location-display', ['exports'], function (exports) {
- exports.default = calculateLocationDisplay;
+ exports["default"] = calculateLocationDisplay;
function calculateLocationDisplay(moduleName, _loc) {
var loc = _loc || {};
var _ref = loc.start || {};
@@ -12347,34 +12347,34 @@
@method compile
@param {String} templateString This is the string to be compiled by HTMLBars.
@param {Object} options This is an options hash to augment the compiler options.
*/
- exports.default = function (templateString, options) {
+ exports["default"] = function (templateString, options) {
if (!compile && Ember.__loader.registry["htmlbars-compiler/compiler"]) {
compile = requireModule("htmlbars-compiler/compiler").compile;
}
if (!compile) {
throw new Error("Cannot call `compile` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compile`.");
}
- var templateSpec = compile(templateString, (0, _emberTemplateCompilerSystemCompile_options.default)(options));
+ var templateSpec = compile(templateString, (0, _emberTemplateCompilerSystemCompile_options["default"])(options));
- return (0, _emberTemplateCompilerSystemTemplate.default)(templateSpec);
+ return (0, _emberTemplateCompilerSystemTemplate["default"])(templateSpec);
};
});
enifed("ember-template-compiler/system/compile_options", ["exports", "ember-metal/core", "ember-metal/merge", "ember-template-compiler/plugins"], function (exports, _emberMetalCore, _emberMetalMerge, _emberTemplateCompilerPlugins) {
/**
@private
@property compileOptions
*/
- exports.default = function (_options) {
+ exports["default"] = function (_options) {
var disableComponentGeneration = true;
- if (_emberMetalCore.default.FEATURES.isEnabled("ember-htmlbars-component-generation")) {
+ if (_emberMetalCore["default"].FEATURES.isEnabled("ember-htmlbars-component-generation")) {
disableComponentGeneration = false;
}
var options = undefined;
// When calling `Ember.Handlebars.compile()` a second argument of `true`
@@ -12387,11 +12387,11 @@
}
options.disableComponentGeneration = disableComponentGeneration;
var plugins = {
- ast: _emberTemplateCompilerPlugins.default.ast.slice()
+ ast: _emberTemplateCompilerPlugins["default"].ast.slice()
};
if (options.plugins && options.plugins.ast) {
plugins.ast = plugins.ast.concat(options.plugins.ast);
}
@@ -12424,20 +12424,20 @@
@private
@method precompile
@param {String} templateString This is the string to be compiled by HTMLBars.
*/
- exports.default = function (templateString, options) {
+ exports["default"] = function (templateString, options) {
if (!compileSpec && Ember.__loader.registry['htmlbars-compiler/compiler']) {
compileSpec = requireModule('htmlbars-compiler/compiler').compileSpec;
}
if (!compileSpec) {
throw new Error('Cannot call `compileSpec` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compileSpec`.');
}
- return compileSpec(templateString, (0, _emberTemplateCompilerSystemCompile_options.default)(options));
+ return compileSpec(templateString, (0, _emberTemplateCompilerSystemCompile_options["default"])(options));
};
});
/**
@module ember
@submodule ember-template-compiler
@@ -12477,11 +12477,11 @@
@private
@method template
@param {Function} templateSpec This is the compiled HTMLBars template spec.
*/
- exports.default = function (templateSpec) {
+ exports["default"] = function (templateSpec) {
if (!templateSpec.render) {
templateSpec = (0, _htmlbarsRuntimeHooks.wrap)(templateSpec);
}
templateSpec.isTop = true;
@@ -12516,11 +12516,11 @@
* @return {TemplateSpec} A template spec string
*/
function compileSpec(string, options) {
var ast = (0, _htmlbarsSyntaxParser.preprocess)(string, options);
- var compiler = new _templateCompiler.default(options);
+ var compiler = new _templateCompiler["default"](options);
var program = compiler.compile(ast);
return program;
}
/*
@@ -12564,11 +12564,11 @@
* @param {Object} options A set of options to provide to the compiler
* @return {Template} A function for rendering the template
*/
function compile(string, options) {
- return (0, _htmlbarsRuntimeHooks.wrap)(template(compileSpec(string, options)), _htmlbarsRuntimeRender.default);
+ return (0, _htmlbarsRuntimeHooks.wrap)(template(compileSpec(string, options)), _htmlbarsRuntimeRender["default"]);
}
});
/*jshint evil:true*/
enifed("htmlbars-compiler/fragment-javascript-compiler", ["exports", "./utils", "../htmlbars-util/quoting"], function (exports, _utils, _htmlbarsUtilQuoting) {
@@ -12580,11 +12580,11 @@
function FragmentJavaScriptCompiler() {
this.source = [];
this.depth = -1;
}
- exports.default = FragmentJavaScriptCompiler;
+ exports["default"] = FragmentJavaScriptCompiler;
FragmentJavaScriptCompiler.prototype.compile = function (opcodes, options) {
this.source.length = 0;
this.depth = -1;
this.indent = options && options.indent || "";
@@ -12672,14 +12672,14 @@
function FragmentOpcodeCompiler() {
this.opcodes = [];
}
- exports.default = FragmentOpcodeCompiler;
+ exports["default"] = FragmentOpcodeCompiler;
FragmentOpcodeCompiler.prototype.compile = function (ast) {
- var templateVisitor = new _templateVisitor.default();
+ var templateVisitor = new _templateVisitor["default"]();
templateVisitor.visit(ast);
(0, _utils.processOpcodes)(this, templateVisitor.actions);
return this.opcodes;
@@ -12756,11 +12756,11 @@
this.morphs = [];
this.fragmentProcessing = [];
this.hooks = undefined;
}
- exports.default = HydrationJavaScriptCompiler;
+ exports["default"] = HydrationJavaScriptCompiler;
var prototype = HydrationJavaScriptCompiler.prototype;
prototype.compile = function (opcodes, options) {
this.stack.length = 0;
@@ -13014,14 +13014,14 @@
this.morphNum = 0;
this.element = null;
this.elementNum = -1;
}
- exports.default = HydrationOpcodeCompiler;
+ exports["default"] = HydrationOpcodeCompiler;
HydrationOpcodeCompiler.prototype.compile = function (ast) {
- var templateVisitor = new _templateVisitor.default();
+ var templateVisitor = new _templateVisitor["default"]();
templateVisitor.visit(ast);
(0, _utils.processOpcodes)(this, templateVisitor.actions);
return this.opcodes;
@@ -13331,28 +13331,28 @@
enifed('htmlbars-compiler/template-compiler', ['exports', './fragment-opcode-compiler', './fragment-javascript-compiler', './hydration-opcode-compiler', './hydration-javascript-compiler', './template-visitor', './utils', '../htmlbars-util/quoting', '../htmlbars-util/array-utils'], function (exports, _fragmentOpcodeCompiler, _fragmentJavascriptCompiler, _hydrationOpcodeCompiler, _hydrationJavascriptCompiler, _templateVisitor, _utils, _htmlbarsUtilQuoting, _htmlbarsUtilArrayUtils) {
function TemplateCompiler(options) {
this.options = options || {};
this.consumerBuildMeta = this.options.buildMeta || function () {};
- this.fragmentOpcodeCompiler = new _fragmentOpcodeCompiler.default();
- this.fragmentCompiler = new _fragmentJavascriptCompiler.default();
- this.hydrationOpcodeCompiler = new _hydrationOpcodeCompiler.default();
- this.hydrationCompiler = new _hydrationJavascriptCompiler.default();
+ this.fragmentOpcodeCompiler = new _fragmentOpcodeCompiler["default"]();
+ this.fragmentCompiler = new _fragmentJavascriptCompiler["default"]();
+ this.hydrationOpcodeCompiler = new _hydrationOpcodeCompiler["default"]();
+ this.hydrationCompiler = new _hydrationJavascriptCompiler["default"]();
this.templates = [];
this.childTemplates = [];
}
- exports.default = TemplateCompiler;
+ exports["default"] = TemplateCompiler;
var dynamicNodes = {
mustache: true,
block: true,
component: true
};
TemplateCompiler.prototype.compile = function (ast) {
- var templateVisitor = new _templateVisitor.default();
+ var templateVisitor = new _templateVisitor["default"]();
templateVisitor.visit(ast);
var normalizedActions = [];
var actions = templateVisitor.actions;
@@ -13709,11 +13709,11 @@
TemplateVisitor.prototype.popFrame = function () {
return this.frameStack.pop();
};
- exports.default = TemplateVisitor;
+ exports["default"] = TemplateVisitor;
// Returns the index of `domNode` in the `nodes` array, skipping
// over any nodes which do not represent DOM nodes.
function domIndexOf(nodes, domNode) {
var index = -1;
@@ -13761,12 +13761,12 @@
visitChildren: _htmlbarsUtilMorphUtils.visitChildren,
validateChildMorphs: _htmlbarsRuntimeExpressionVisitor.validateChildMorphs,
clearMorph: _htmlbarsUtilTemplateUtils.clearMorph
};
- exports.hooks = _htmlbarsRuntimeHooks.default;
- exports.render = _htmlbarsRuntimeRender.default;
+ exports.hooks = _htmlbarsRuntimeHooks["default"];
+ exports.render = _htmlbarsRuntimeRender["default"];
exports.internal = internal;
});
enifed("htmlbars-runtime/expression-visitor", ["exports", "../htmlbars-util/object-utils", "../htmlbars-util/morph-utils"], function (exports, _htmlbarsUtilObjectUtils, _htmlbarsUtilMorphUtils) {
/**
@@ -13953,11 +13953,11 @@
attrs = node[2],
templateId = node[3],
inverseId = node[4];
var paramsAndHash = this.linkParamsAndHash(env, scope, morph, path, [], attrs);
var templates = {
- default: template.templates[templateId],
+ "default": template.templates[templateId],
inverse: template.templates[inverseId]
};
morph.isDirty = morph.isSubtreeDirty = false;
env.hooks.component(morph, env, scope, path, paramsAndHash[0], paramsAndHash[1], templates, visitor);
@@ -13969,11 +13969,11 @@
env.hooks.attributes(morph, env, scope, template, parentMorph, visitor);
}
});
exports.AlwaysDirtyVisitor = AlwaysDirtyVisitor;
- exports.default = (0, _htmlbarsUtilObjectUtils.merge)((0, _htmlbarsUtilObjectUtils.createObject)(base), {
+ exports["default"] = (0, _htmlbarsUtilObjectUtils.merge)((0, _htmlbarsUtilObjectUtils.createObject)(base), {
// [ 'block', path, params, hash, templateId, inverseId ]
block: function (node, morph, env, scope, template, visitor) {
dirtyCheck(env, morph, visitor, function (visitor) {
AlwaysDirtyVisitor.block(node, morph, env, scope, template, visitor);
});
@@ -14169,11 +14169,11 @@
options = options || {};
options.self = self;
options.blockArguments = blockArguments;
- return (0, _render.default)(template, env, scope, options);
+ return (0, _render["default"])(template, env, scope, options);
}
};
}
function wrapForHelper(template, env, scope, morph, renderState, visitor) {
@@ -14237,11 +14237,11 @@
}
morph.lastYielded = { self: self, template: template, shadowTemplate: null };
// Render the template that was selected by the helper
- (0, _render.default)(template, env, scope, { renderNode: morph, self: self, blockArguments: blockArguments });
+ (0, _render["default"])(template, env, scope, { renderNode: morph, self: self, blockArguments: blockArguments });
};
}
function yieldItem(template, env, parentScope, morph, renderState, visitor) {
// Initialize state that tracks multiple items being
@@ -14289,11 +14289,11 @@
morph.lastYielded = null;
var morphList, morphMap;
if (!morph.morphList) {
- morph.morphList = new _morphRangeMorphList.default();
+ morph.morphList = new _morphRangeMorphList["default"]();
morph.morphMap = {};
morph.setMorphList(morph.morphList);
}
morphList = morph.morphList;
@@ -14361,11 +14361,11 @@
env.hooks.bindBlock(env, shadowScope, blockToYield);
morph.lastYielded = { self: self, template: template, shadowTemplate: shadowTemplate };
// Render the shadow template with the block available
- (0, _render.default)(shadowTemplate.raw, env, shadowScope, { renderNode: morph, self: self, blockArguments: blockArguments });
+ (0, _render["default"])(shadowTemplate.raw, env, shadowScope, { renderNode: morph, self: self, blockArguments: blockArguments });
};
function blockToYield(env, blockArguments, self, renderNode, shadowParent, visitor) {
if (renderNode.lastResult) {
renderNode.lastResult.revalidateWith(env, undefined, undefined, blockArguments, visitor);
@@ -14376,11 +14376,11 @@
// we only need to create a new scope if the template has block parameters
if (template.arity) {
scope = env.hooks.createChildScope(parentScope);
}
- (0, _render.default)(template, env, scope, { renderNode: renderNode, self: self, blockArguments: blockArguments });
+ (0, _render["default"])(template, env, scope, { renderNode: renderNode, self: self, blockArguments: blockArguments });
}
}
}
function isStableShadowRoot(template, shadowTemplate, lastYielded) {
@@ -14661,11 +14661,11 @@
var redirect = env.hooks.classify(env, scope, path);
if (redirect) {
switch (redirect) {
case "component":
- env.hooks.component(morph, env, scope, path, params, hash, { default: template, inverse: inverse }, visitor);break;
+ env.hooks.component(morph, env, scope, path, params, hash, { "default": template, inverse: inverse }, visitor);break;
case "inline":
env.hooks.inline(morph, env, scope, path, params, hash, visitor);break;
case "block":
env.hooks.block(morph, env, scope, path, params, hash, template, inverse, visitor);break;
default:
@@ -15122,14 +15122,14 @@
return reference;
}
function component(morph, env, scope, tagName, params, attrs, templates, visitor) {
if (env.hooks.hasHelper(env, scope, tagName)) {
- return env.hooks.block(morph, env, scope, tagName, params, attrs, templates.default, templates.inverse, visitor);
+ return env.hooks.block(morph, env, scope, tagName, params, attrs, templates["default"], templates.inverse, visitor);
}
- componentFallback(morph, env, scope, tagName, attrs, templates.default);
+ componentFallback(morph, env, scope, tagName, attrs, templates["default"]);
}
function concat(env, params) {
var value = "";
for (var i = 0, l = params.length; i < l; i++) {
@@ -15141,11 +15141,11 @@
function componentFallback(morph, env, scope, tagName, attrs, template) {
var element = env.dom.createElement(tagName);
for (var name in attrs) {
element.setAttribute(name, env.hooks.getValue(attrs[name]));
}
- var fragment = (0, _render.default)(template, env, scope, {}).fragment;
+ var fragment = (0, _render["default"])(template, env, scope, {}).fragment;
element.appendChild(fragment);
morph.setNode(element);
}
function hasHelper(env, scope, helperName) {
@@ -15160,11 +15160,11 @@
function updateScope(env, scope) {
env.hooks.bindScope(env, scope);
}
- exports.default = {
+ exports["default"] = {
// fundamental hooks that you will likely want to override
bindLocal: bindLocal,
bindSelf: bindSelf,
bindScope: bindScope,
classify: classify,
@@ -15252,18 +15252,18 @@
var morph = new HTMLBarsMorph(domHelper, contextualElement);
morph.setRange(firstNode, lastNode);
return morph;
};
- var prototype = HTMLBarsMorph.prototype = (0, _htmlbarsUtilObjectUtils.createObject)(_morphRange.default.prototype);
+ var prototype = HTMLBarsMorph.prototype = (0, _htmlbarsUtilObjectUtils.createObject)(_morphRange["default"].prototype);
prototype.constructor = HTMLBarsMorph;
- prototype.super$constructor = _morphRange.default;
+ prototype.super$constructor = _morphRange["default"];
- exports.default = HTMLBarsMorph;
+ exports["default"] = HTMLBarsMorph;
});
enifed("htmlbars-runtime/render", ["exports", "../htmlbars-util/array-utils", "../htmlbars-util/morph-utils", "./expression-visitor", "./morph", "../htmlbars-util/template-utils", "../htmlbars-util/void-tag-names"], function (exports, _htmlbarsUtilArrayUtils, _htmlbarsUtilMorphUtils, _expressionVisitor, _morph, _htmlbarsUtilTemplateUtils, _htmlbarsUtilVoidTagNames) {
- exports.default = render;
+ exports["default"] = render;
exports.manualElement = manualElement;
exports.attachAttributes = attachAttributes;
exports.createChildMorph = createChildMorph;
exports.getCachedFragment = getCachedFragment;
@@ -15373,11 +15373,11 @@
continue;
}
dom.setAttribute(el1, key, attributes[key]);
}
- if (!_htmlbarsUtilVoidTagNames.default[tagName]) {
+ if (!_htmlbarsUtilVoidTagNames["default"][tagName]) {
var el2 = dom.createComment("");
dom.appendChild(el1, el2);
}
dom.appendChild(el0, el1);
@@ -15477,11 +15477,11 @@
node.isDirty = true;
});
};
RenderResult.prototype.revalidate = function (env, self, blockArguments, scope) {
- this.revalidateWith(env, scope, self, blockArguments, _expressionVisitor.default);
+ this.revalidateWith(env, scope, self, blockArguments, _expressionVisitor["default"]);
};
RenderResult.prototype.rerender = function (env, self, blockArguments, scope) {
this.revalidateWith(env, scope, self, blockArguments, _expressionVisitor.AlwaysDirtyVisitor);
};
@@ -15584,11 +15584,11 @@
function initializeNode(node, owner) {
node.ownerNode = owner;
}
function createChildMorph(dom, parentMorph, contextualElement) {
- var morph = _morph.default.empty(dom, contextualElement || parentMorph.contextualElement);
+ var morph = _morph["default"].empty(dom, contextualElement || parentMorph.contextualElement);
initializeNode(morph, parentMorph.ownerNode);
return morph;
}
function getCachedFragment(template, env) {
@@ -15612,13 +15612,13 @@
return fragment;
}
});
enifed("htmlbars-syntax", ["exports", "./htmlbars-syntax/walker", "./htmlbars-syntax/builders", "./htmlbars-syntax/parser"], function (exports, _htmlbarsSyntaxWalker, _htmlbarsSyntaxBuilders, _htmlbarsSyntaxParser) {
- exports.Walker = _htmlbarsSyntaxWalker.default;
- exports.builders = _htmlbarsSyntaxBuilders.default;
- exports.parse = _htmlbarsSyntaxParser.default;
+ exports.Walker = _htmlbarsSyntaxWalker["default"];
+ exports.builders = _htmlbarsSyntaxBuilders["default"];
+ exports.parse = _htmlbarsSyntaxParser["default"];
});
enifed("htmlbars-syntax/builders", ["exports"], function (exports) {
exports.buildMustache = buildMustache;
exports.buildBlock = buildBlock;
exports.buildElementModifier = buildElementModifier;
@@ -15837,11 +15837,11 @@
} else {
return null;
}
}
- exports.default = {
+ exports["default"] = {
mustache: buildMustache,
block: buildBlock,
partial: buildPartial,
comment: buildComment,
element: buildElement,
@@ -15850,14 +15850,14 @@
attr: buildAttr,
text: buildText,
sexpr: buildSexpr,
path: buildPath,
string: buildString,
- boolean: buildBoolean,
+ "boolean": buildBoolean,
number: buildNumber,
undefined: buildUndefined,
- null: buildNull,
+ "null": buildNull,
concat: buildConcat,
hash: buildHash,
pair: buildPair,
program: buildProgram,
loc: buildLoc,
@@ -16010,34 +16010,34 @@
}
};
// Must be exported as an object rather than the root of the module as the jison lexer
// must modify the object to operate properly.
- exports.default = AST;
+ exports["default"] = AST;
});
enifed('htmlbars-syntax/handlebars/compiler/base', ['exports', './parser', './ast', './whitespace-control', './helpers', '../utils'], function (exports, _parser, _ast, _whitespaceControl, _helpers, _utils) {
exports.parse = parse;
- exports.parser = _parser.default;
+ exports.parser = _parser["default"];
var yy = {};
- (0, _utils.extend)(yy, _helpers, _ast.default);
+ (0, _utils.extend)(yy, _helpers, _ast["default"]);
function parse(input, options) {
// Just return if an already-compiled AST was passed in.
if (input.type === 'Program') {
return input;
}
- _parser.default.yy = yy;
+ _parser["default"].yy = yy;
// Altering the shared object here, but this is ok as parser is a sync operation
yy.locInfo = function (locInfo) {
return new yy.SourceLocation(options && options.srcName, locInfo);
};
- var strip = new _whitespaceControl.default();
- return strip.accept(_parser.default.parse(input));
+ var strip = new _whitespaceControl["default"]();
+ return strip.accept(_parser["default"].parse(input));
}
});
enifed('htmlbars-syntax/handlebars/compiler/helpers', ['exports', '../exception'], function (exports, _exception) {
exports.SourceLocation = SourceLocation;
exports.id = id;
@@ -16095,11 +16095,11 @@
isLiteral = parts[i].original !== part;
original += (parts[i].separator || '') + part;
if (!isLiteral && (part === '..' || part === '.' || part === 'this')) {
if (dig.length > 0) {
- throw new _exception.default('Invalid path: ' + original, { loc: locInfo });
+ throw new _exception["default"]('Invalid path: ' + original, { loc: locInfo });
} else if (part === '..') {
depth++;
depthString += '../';
}
} else {
@@ -16120,11 +16120,11 @@
function prepareRawBlock(openRawBlock, content, close, locInfo) {
if (openRawBlock.path.original !== close) {
var errorNode = { loc: openRawBlock.path.loc };
- throw new _exception.default(openRawBlock.path.original + ' doesn\'t match ' + close, errorNode);
+ throw new _exception["default"](openRawBlock.path.original + ' doesn\'t match ' + close, errorNode);
}
locInfo = this.locInfo(locInfo);
var program = new this.Program([content], null, {}, locInfo);
@@ -16134,11 +16134,11 @@
function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) {
// When we are chaining inverse calls, we will not have a close path
if (close && close.path && openBlock.path.original !== close.path.original) {
var errorNode = { loc: openBlock.path.loc };
- throw new _exception.default(openBlock.path.original + ' doesn\'t match ' + close.path.original, errorNode);
+ throw new _exception["default"](openBlock.path.original + ' doesn\'t match ' + close.path.original, errorNode);
}
program.blockParams = openBlock.blockParams;
var inverse = undefined,
@@ -16830,11 +16830,11 @@
parser.lexer = lexer;
function Parser() {
this.yy = {};
}Parser.prototype = parser;parser.Parser = Parser;
return new Parser();
- })();exports.default = handlebars;
+ })();exports["default"] = handlebars;
});
enifed('htmlbars-syntax/handlebars/compiler/visitor', ['exports', '../exception', './ast'], function (exports, _exception, _ast) {
function Visitor() {
this.parents = [];
@@ -16847,12 +16847,12 @@
// Visits a given value. If mutating, will replace the value if necessary.
acceptKey: function (node, name) {
var value = this.accept(node[name]);
if (this.mutating) {
// Hacky sanity check:
- if (value && (!value.type || !_ast.default[value.type])) {
- throw new _exception.default('Unexpected node type "' + value.type + '" found when accepting ' + name + ' on ' + node.type);
+ if (value && (!value.type || !_ast["default"][value.type])) {
+ throw new _exception["default"]('Unexpected node type "' + value.type + '" found when accepting ' + name + ' on ' + node.type);
}
node[name] = value;
}
},
@@ -16860,11 +16860,11 @@
// required keys are not removed.
acceptRequired: function (node, name) {
this.acceptKey(node, name);
if (!node[name]) {
- throw new _exception.default(node.type + ' requires ' + name);
+ throw new _exception["default"](node.type + ' requires ' + name);
}
},
// Traverses a given array. If mutating, empty respnses will be removed
// for child elements.
@@ -16949,17 +16949,17 @@
HashPair: function (pair) {
this.acceptRequired(pair, 'value');
}
};
- exports.default = Visitor;
+ exports["default"] = Visitor;
});
/* content */ /* comment */ /* path */ /* string */ /* number */ /* bool */ /* literal */ /* literal */
enifed('htmlbars-syntax/handlebars/compiler/whitespace-control', ['exports', './visitor'], function (exports, _visitor) {
function WhitespaceControl() {}
- WhitespaceControl.prototype = new _visitor.default();
+ WhitespaceControl.prototype = new _visitor["default"]();
WhitespaceControl.prototype.Program = function (program) {
var isRoot = !this.isRootSeen;
this.isRootSeen = true;
@@ -17154,11 +17154,11 @@
current.value = current.value.replace(multiple ? /\s+$/ : /[ \t]+$/, '');
current.leftStripped = current.value !== original;
return current.leftStripped;
}
- exports.default = WhitespaceControl;
+ exports["default"] = WhitespaceControl;
});
enifed('htmlbars-syntax/handlebars/exception', ['exports'], function (exports) {
var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];
function Exception(message, node) {
@@ -17189,11 +17189,11 @@
}
}
Exception.prototype = new Error();
- exports.default = Exception;
+ exports["default"] = Exception;
});
enifed('htmlbars-syntax/handlebars/safe-string', ['exports'], function (exports) {
// Build out our basic SafeString type
function SafeString(string) {
this.string = string;
@@ -17201,11 +17201,11 @@
SafeString.prototype.toString = SafeString.prototype.toHTML = function () {
return '' + this.string;
};
- exports.default = SafeString;
+ exports["default"] = SafeString;
});
enifed('htmlbars-syntax/handlebars/utils', ['exports'], function (exports) {
exports.extend = extend;
exports.indexOf = indexOf;
exports.escapeExpression = escapeExpression;
@@ -17377,11 +17377,11 @@
var params = rawMustache.params;
var hash = rawMustache.hash;
var escaped = rawMustache.escaped;
var loc = rawMustache.loc;
- var mustache = _builders.default.mustache(path, params, hash, !escaped, loc);
+ var mustache = _builders["default"].mustache(path, params, hash, !escaped, loc);
if (this.tokenizer.state === "comment") {
this.tokenizer.addChar("{{" + this.sourceForMustache(mustache) + "}}");
return;
}
@@ -17483,11 +17483,11 @@
}
return node;
}
- exports.default = nodeHandlers;
+ exports["default"] = nodeHandlers;
});
enifed("htmlbars-syntax/parser", ["exports", "./handlebars/compiler/base", "./tokenizer", "../simple-html-tokenizer/entity-parser", "../simple-html-tokenizer/char-refs/full", "./node-handlers", "./token-handlers", "../htmlbars-syntax"], function (exports, _handlebarsCompilerBase, _tokenizer, _simpleHtmlTokenizerEntityParser, _simpleHtmlTokenizerCharRefsFull, _nodeHandlers, _tokenHandlers, _htmlbarsSyntax) {
exports.preprocess = preprocess;
var splitLines;
@@ -17519,18 +17519,18 @@
}
return combined;
}
- exports.default = preprocess;
+ exports["default"] = preprocess;
function HTMLProcessor(source, options) {
this.options = options || {};
this.elementStack = [];
- this.tokenizer = new _tokenizer.Tokenizer(new _simpleHtmlTokenizerEntityParser.default(_simpleHtmlTokenizerCharRefsFull.default));
- this.nodeHandlers = _nodeHandlers.default;
- this.tokenHandlers = _tokenHandlers.default;
+ this.tokenizer = new _tokenizer.Tokenizer(new _simpleHtmlTokenizerEntityParser["default"](_simpleHtmlTokenizerCharRefsFull["default"]));
+ this.nodeHandlers = _nodeHandlers["default"];
+ this.tokenHandlers = _tokenHandlers["default"];
if (typeof source === "string") {
this.source = splitLines(source);
}
}
@@ -17606,11 +17606,11 @@
start: { line: tag.loc.start.line, column: tag.loc.start.column },
end: { line: null, column: null }
};
this.elementStack.push(element);
- if (_htmlbarsUtilVoidTagNames.default.hasOwnProperty(tag.tagName) || tag.selfClosing) {
+ if (_htmlbarsUtilVoidTagNames["default"].hasOwnProperty(tag.tagName) || tag.selfClosing) {
tokenHandlers.EndTag.call(this, tag, true);
}
},
BlockStatement: function () {
@@ -17686,11 +17686,11 @@
};
function validateEndTag(tag, element, selfClosing) {
var error;
- if (_htmlbarsUtilVoidTagNames.default[tag.tagName] && !selfClosing) {
+ if (_htmlbarsUtilVoidTagNames["default"][tag.tagName] && !selfClosing) {
// EngTag is also called by StartTag for void and self-closing tags (i.e.
// <input> or <br />, so we need to check for that here. Otherwise, we would
// throw an error for those cases.
error = "Invalid end tag " + formatEndTagInfo(tag) + " (void elements cannot have end tags).";
} else if (element.tag === undefined) {
@@ -17706,20 +17706,20 @@
function formatEndTagInfo(tag) {
return "`" + tag.tagName + "` (on line " + tag.loc.end.line + ")";
}
- exports.default = tokenHandlers;
+ exports["default"] = tokenHandlers;
});
/*block*/
enifed("htmlbars-syntax/tokenizer", ["exports", "../simple-html-tokenizer", "./utils", "../htmlbars-util/array-utils", "./builders"], function (exports, _simpleHtmlTokenizer, _utils, _htmlbarsUtilArrayUtils, _builders) {
_simpleHtmlTokenizer.Tokenizer.prototype.createAttribute = function (char) {
if (this.token.type === "EndTag") {
throw new Error("Invalid end tag: closing tag must not have attributes, in " + formatTokenInfo(this) + ".");
}
- this.currentAttribute = _builders.default.attr(char.toLowerCase(), [], null);
+ this.currentAttribute = _builders["default"].attr(char.toLowerCase(), [], null);
this.token.attributes.push(this.currentAttribute);
this.state = "attributeName";
};
_simpleHtmlTokenizer.Tokenizer.prototype.markAttributeQuoted = function (value) {
@@ -17748,11 +17748,11 @@
}
} else {
if (value.length > 0 && value[value.length - 1].type === "TextNode") {
value[value.length - 1].chars += char;
} else {
- value.push(_builders.default.text(char));
+ value.push(_builders["default"].text(char));
}
}
};
_simpleHtmlTokenizer.Tokenizer.prototype.finalizeAttributeValue = function () {
@@ -17771,33 +17771,33 @@
var path = mustache.path;
var params = mustache.params;
var hash = mustache.hash;
var loc = mustache.loc;
- var modifier = _builders.default.elementModifier(path, params, hash, loc);
+ var modifier = _builders["default"].elementModifier(path, params, hash, loc);
this.token.modifiers.push(modifier);
};
function prepareAttributeValue(attr) {
var parts = attr.value;
var length = parts.length;
if (length === 0) {
- return _builders.default.text("");
+ return _builders["default"].text("");
} else if (length === 1 && parts[0].type === "TextNode") {
return parts[0];
} else if (!attr.quoted) {
return parts[0];
} else {
- return _builders.default.concat((0, _htmlbarsUtilArrayUtils.map)(parts, prepareConcatPart));
+ return _builders["default"].concat((0, _htmlbarsUtilArrayUtils.map)(parts, prepareConcatPart));
}
}
function prepareConcatPart(node) {
switch (node.type) {
case "TextNode":
- return _builders.default.string(node.chars);
+ return _builders["default"].string(node.chars);
case "MustacheStatement":
return (0, _utils.unwrapMustache)(node);
default:
throw new Error("Unsupported node in quoted attribute value: " + node.type);
}
@@ -17891,11 +17891,11 @@
function Walker(order) {
this.order = order;
this.stack = [];
}
- exports.default = Walker;
+ exports["default"] = Walker;
Walker.prototype.visit = function (node, callback) {
if (!node) {
return;
}
@@ -18121,11 +18121,11 @@
return new Temp();
}
}
});
enifed('htmlbars-util', ['exports', './htmlbars-util/safe-string', './htmlbars-util/handlebars/utils', './htmlbars-util/namespaces', './htmlbars-util/morph-utils'], function (exports, _htmlbarsUtilSafeString, _htmlbarsUtilHandlebarsUtils, _htmlbarsUtilNamespaces, _htmlbarsUtilMorphUtils) {
- exports.SafeString = _htmlbarsUtilSafeString.default;
+ exports.SafeString = _htmlbarsUtilSafeString["default"];
exports.escapeExpression = _htmlbarsUtilHandlebarsUtils.escapeExpression;
exports.getAttrNamespace = _htmlbarsUtilNamespaces.getAttrNamespace;
exports.validateChildMorphs = _htmlbarsUtilMorphUtils.validateChildMorphs;
exports.linkParams = _htmlbarsUtilMorphUtils.linkParams;
exports.dump = _htmlbarsUtilMorphUtils.dump;
@@ -18195,11 +18195,11 @@
SafeString.prototype.toString = SafeString.prototype.toHTML = function () {
return '' + this.string;
};
- exports.default = SafeString;
+ exports["default"] = SafeString;
});
enifed('htmlbars-util/handlebars/utils', ['exports'], function (exports) {
exports.extend = extend;
exports.indexOf = indexOf;
exports.escapeExpression = escapeExpression;
@@ -18538,11 +18538,11 @@
}
return str;
}
});
enifed('htmlbars-util/safe-string', ['exports', './handlebars/safe-string'], function (exports, _handlebarsSafeString) {
- exports.default = _handlebarsSafeString.default;
+ exports["default"] = _handlebarsSafeString["default"];
});
enifed("htmlbars-util/template-utils", ["exports", "../htmlbars-util/morph-utils"], function (exports, _htmlbarsUtilMorphUtils) {
exports.RenderState = RenderState;
exports.blockFor = blockFor;
exports.renderAndCleanup = renderAndCleanup;
@@ -18740,11 +18740,11 @@
(0, _arrayUtils.forEach)(voidTagNames.split(" "), function (tagName) {
voidMap[tagName] = true;
});
- exports.default = voidMap;
+ exports["default"] = voidMap;
});
enifed('morph-range', ['exports', './morph-range/utils'], function (exports, _morphRangeUtils) {
// constructor just initializes the fields
// use one of the static initializers to create a valid morph.
@@ -19009,11 +19009,11 @@
Morph.prototype.appendToNode = function Morph$appendToNode(parent) {
this.insertBeforeNode(parent, null);
};
- exports.default = Morph;
+ exports["default"] = Morph;
});
enifed('morph-range/morph-list', ['exports', './utils'], function (exports, _utils) {
function MorphList() {
// morph graph
@@ -19095,11 +19095,11 @@
}
morph.destroy();
};
- exports.default = MorphList;
+ exports["default"] = MorphList;
});
enifed('morph-range/morph-list.umd', ['exports', './morph-list'], function (exports, _morphList) {
(function (root, factory) {
if (typeof enifed === 'function' && enifed.amd) {
@@ -19108,11 +19108,11 @@
module.exports = factory();
} else {
root.MorphList = factory();
}
})(this, function () {
- return _morphList.default;
+ return _morphList["default"];
});
});
enifed("morph-range/utils", ["exports"], function (exports) {
exports.clear = clear;
exports.insertBefore = insertBefore;
@@ -19149,22 +19149,22 @@
node = prevNode;
} while (node);
}
});
enifed('simple-html-tokenizer', ['exports', './simple-html-tokenizer/tokenizer', './simple-html-tokenizer/tokenize', './simple-html-tokenizer/generator', './simple-html-tokenizer/generate', './simple-html-tokenizer/tokens'], function (exports, _simpleHtmlTokenizerTokenizer, _simpleHtmlTokenizerTokenize, _simpleHtmlTokenizerGenerator, _simpleHtmlTokenizerGenerate, _simpleHtmlTokenizerTokens) {
- exports.Tokenizer = _simpleHtmlTokenizerTokenizer.default;
- exports.tokenize = _simpleHtmlTokenizerTokenize.default;
- exports.Generator = _simpleHtmlTokenizerGenerator.default;
- exports.generate = _simpleHtmlTokenizerGenerate.default;
+ exports.Tokenizer = _simpleHtmlTokenizerTokenizer["default"];
+ exports.tokenize = _simpleHtmlTokenizerTokenize["default"];
+ exports.Generator = _simpleHtmlTokenizerGenerator["default"];
+ exports.generate = _simpleHtmlTokenizerGenerate["default"];
exports.StartTag = _simpleHtmlTokenizerTokens.StartTag;
exports.EndTag = _simpleHtmlTokenizerTokens.EndTag;
exports.Chars = _simpleHtmlTokenizerTokens.Chars;
exports.Comment = _simpleHtmlTokenizerTokens.Comment;
});
/*jshint boss:true*/
enifed("simple-html-tokenizer/char-refs/full", ["exports"], function (exports) {
- exports.default = {
+ exports["default"] = {
AElig: [198],
AMP: [38],
Aacute: [193],
Abreve: [258],
Acirc: [194],
@@ -21289,11 +21289,11 @@
zwj: [8205],
zwnj: [8204]
};
});
enifed("simple-html-tokenizer/char-refs/min", ["exports"], function (exports) {
- exports.default = {
+ exports["default"] = {
quot: [34],
amp: [38],
apos: [39],
lt: [60],
gt: [62]
@@ -21303,41 +21303,41 @@
function EntityParser(namedCodepoints) {
this.namedCodepoints = namedCodepoints;
}
EntityParser.prototype.parse = function (tokenizer) {
- var input = tokenizer.input.slice(tokenizer.char);
+ var input = tokenizer.input.slice(tokenizer["char"]);
var matches = input.match(/^#(?:x|X)([0-9A-Fa-f]+);/);
if (matches) {
- tokenizer.char += matches[0].length;
+ tokenizer["char"] += matches[0].length;
return String.fromCharCode(parseInt(matches[1], 16));
}
matches = input.match(/^#([0-9]+);/);
if (matches) {
- tokenizer.char += matches[0].length;
+ tokenizer["char"] += matches[0].length;
return String.fromCharCode(parseInt(matches[1], 10));
}
matches = input.match(/^([A-Za-z]+);/);
if (matches) {
var codepoints = this.namedCodepoints[matches[1]];
if (codepoints) {
- tokenizer.char += matches[0].length;
+ tokenizer["char"] += matches[0].length;
for (var i = 0, buffer = ''; i < codepoints.length; i++) {
buffer += String.fromCharCode(codepoints[i]);
}
return buffer;
}
}
};
- exports.default = EntityParser;
+ exports["default"] = EntityParser;
});
enifed('simple-html-tokenizer/generate', ['exports', './generator'], function (exports, _generator) {
- exports.default = generate;
+ exports["default"] = generate;
function generate(tokens) {
- var generator = new _generator.default();
+ var generator = new _generator["default"]();
return generator.generate(tokens);
}
});
enifed("simple-html-tokenizer/generator", ["exports"], function (exports) {
var escape = (function () {
@@ -21350,11 +21350,11 @@
"\"": """,
"'": "'",
"`": "`"
};
function escapeChar(char) {
- return map[char];
+ return map["char"];
}
return function escape(string) {
if (!test.test(string)) {
return string;
}
@@ -21378,11 +21378,11 @@
},
escape: function (text) {
var unsafeCharsMap = this.unsafeCharsMap;
return text.replace(this.unsafeChars, function (char) {
- return unsafeCharsMap[char] || char;
+ return unsafeCharsMap["char"] || char;
});
},
StartTag: function (token) {
var out = "<";
@@ -21432,17 +21432,17 @@
return attrString;
}
};
- exports.default = Generator;
+ exports["default"] = Generator;
});
enifed('simple-html-tokenizer/tokenize', ['exports', './tokenizer', './entity-parser', './char-refs/full'], function (exports, _tokenizer, _entityParser, _charRefsFull) {
- exports.default = tokenize;
+ exports["default"] = tokenize;
function tokenize(input) {
- var tokenizer = new _tokenizer.default(new _entityParser.default(_charRefsFull.default));
+ var tokenizer = new _tokenizer["default"](new _entityParser["default"](_charRefsFull["default"]));
return tokenizer.tokenize(input);
}
});
enifed('simple-html-tokenizer/tokenizer', ['exports', './utils', './tokens'], function (exports, _utils, _tokens) {
@@ -21451,11 +21451,11 @@
this.input = null;
this.state = null;
this.token = null;
- this.char = -1;
+ this["char"] = -1;
this.line = -1;
this.column = -1;
this.startLine = -1;
this.startColumn = -1;
@@ -21467,11 +21467,11 @@
reset: function () {
this.input = '';
this.state = 'data';
this.token = null;
- this.char = 0;
+ this["char"] = 0;
this.line = 1;
this.column = 0;
this.startLine = 1;
this.startColumn = 0;
@@ -21511,12 +21511,12 @@
tokenizeEOF: function () {
return this.emitToken();
},
lex: function () {
- while (this.char < this.input.length) {
- var char = this.input.charAt(this.char++);
+ while (this["char"] < this.input.length) {
+ var char = this.input.charAt(this["char"]++);
if (char) {
if (char === '\n') {
this.line++;
this.column = 0;
} else {
@@ -21672,12 +21672,12 @@
return this.createTag(_tokens.StartTag, char.toLowerCase());
}
},
markupDeclaration: function (char) {
- if (char === '-' && this.input.charAt(this.char) === '-') {
- this.char++;
+ if (char === '-' && this.input.charAt(this["char"]) === '-') {
+ this["char"]++;
this.createComment();
}
},
commentStart: function (char) {
@@ -21840,21 +21840,21 @@
} else if (char === '/') {
this.state = 'selfClosingStartTag';
} else if (char === '>') {
return this.emitToken();
} else {
- this.char--;
+ this["char"]--;
this.state = 'beforeAttributeName';
}
},
selfClosingStartTag: function (char) {
if (char === '>') {
this.selfClosing();
return this.emitToken();
} else {
- this.char--;
+ this["char"]--;
this.state = 'beforeAttributeName';
}
},
endTagOpen: function (char) {
@@ -21863,10 +21863,10 @@
}
}
}
};
- exports.default = Tokenizer;
+ exports["default"] = Tokenizer;
});
enifed('simple-html-tokenizer/tokens', ['exports'], function (exports) {
exports.StartTag = StartTag;
exports.EndTag = EndTag;
exports.Chars = Chars;
\ No newline at end of file