dist/globals/ember-data.prod.js in ember-data-source-2.4.1 vs dist/globals/ember-data.prod.js in ember-data-source-2.4.2

- old
+ new

@@ -4,11 +4,11 @@ /*! * @overview Ember Data * @copyright Copyright 2011-2016 Tilde Inc. and contributors. * Portions Copyright 2011 LivingSocial Inc. * @license Licensed under MIT license (see license.js) - * @version 2.4.1 + * @version 2.4.2 */ var define, requireModule, require, requirejs; (function() { @@ -5565,29 +5565,29 @@ }); }); /** @module ember-data */ -define('ember-data/-private/system/references', ['exports', '-private/system/references/record', '-private/system/references/belongs-to', '-private/system/references/has-many'], function (exports, _privateSystemReferencesRecord, _privateSystemReferencesBelongsTo, _privateSystemReferencesHasMany) { - exports.RecordReference = _privateSystemReferencesRecord.default; - exports.BelongsToReference = _privateSystemReferencesBelongsTo.default; - exports.HasManyReference = _privateSystemReferencesHasMany.default; +define('ember-data/-private/system/references', ['exports', 'ember-data/-private/system/references/record', 'ember-data/-private/system/references/belongs-to', 'ember-data/-private/system/references/has-many'], function (exports, _emberDataPrivateSystemReferencesRecord, _emberDataPrivateSystemReferencesBelongsTo, _emberDataPrivateSystemReferencesHasMany) { + exports.RecordReference = _emberDataPrivateSystemReferencesRecord.default; + exports.BelongsToReference = _emberDataPrivateSystemReferencesBelongsTo.default; + exports.HasManyReference = _emberDataPrivateSystemReferencesHasMany.default; }); -define('ember-data/-private/system/references/belongs-to', ['exports', 'ember-data/model', 'ember', '-private/system/references/reference', 'ember-data/-private/utils'], function (exports, _emberDataModel, _ember, _privateSystemReferencesReference, _emberDataPrivateUtils) { +define('ember-data/-private/system/references/belongs-to', ['exports', 'ember-data/model', 'ember', 'ember-data/-private/system/references/reference', 'ember-data/-private/utils'], function (exports, _emberDataModel, _ember, _emberDataPrivateSystemReferencesReference, _emberDataPrivateUtils) { var BelongsToReference = function (store, parentInternalModel, belongsToRelationship) { this._super$constructor(store, parentInternalModel); this.belongsToRelationship = belongsToRelationship; this.type = belongsToRelationship.relationshipMeta.type; this.parent = parentInternalModel.recordReference; // TODO inverse }; - BelongsToReference.prototype = Object.create(_privateSystemReferencesReference.default.prototype); + BelongsToReference.prototype = Object.create(_emberDataPrivateSystemReferencesReference.default.prototype); BelongsToReference.prototype.constructor = BelongsToReference; - BelongsToReference.prototype._super$constructor = _privateSystemReferencesReference.default; + BelongsToReference.prototype._super$constructor = _emberDataPrivateSystemReferencesReference.default; BelongsToReference.prototype.remoteType = function () { if (this.belongsToRelationship.link) { return "link"; } @@ -5655,11 +5655,11 @@ }); }; exports.default = BelongsToReference; }); -define('ember-data/-private/system/references/has-many', ['exports', 'ember', '-private/system/references/reference'], function (exports, _ember, _privateSystemReferencesReference) { +define('ember-data/-private/system/references/has-many', ['exports', 'ember', 'ember-data/-private/system/references/reference'], function (exports, _ember, _emberDataPrivateSystemReferencesReference) { var get = _ember.default.get; var HasManyReference = function (store, parentInternalModel, hasManyRelationship) { this._super$constructor(store, parentInternalModel); @@ -5668,13 +5668,13 @@ this.parent = parentInternalModel.recordReference; // TODO inverse }; - HasManyReference.prototype = Object.create(_privateSystemReferencesReference.default.prototype); + HasManyReference.prototype = Object.create(_emberDataPrivateSystemReferencesReference.default.prototype); HasManyReference.prototype.constructor = HasManyReference; - HasManyReference.prototype._super$constructor = _privateSystemReferencesReference.default; + HasManyReference.prototype._super$constructor = _emberDataPrivateSystemReferencesReference.default; HasManyReference.prototype.remoteType = function () { if (this.hasManyRelationship.link) { return "link"; } @@ -5756,21 +5756,21 @@ return this.hasManyRelationship.reload(); }; exports.default = HasManyReference; }); -define('ember-data/-private/system/references/record', ['exports', 'ember', '-private/system/references/reference'], function (exports, _ember, _privateSystemReferencesReference) { +define('ember-data/-private/system/references/record', ['exports', 'ember', 'ember-data/-private/system/references/reference'], function (exports, _ember, _emberDataPrivateSystemReferencesReference) { var RecordReference = function (store, internalModel) { this._super$constructor(store, internalModel); this.type = internalModel.modelName; this._id = internalModel.id; }; - RecordReference.prototype = Object.create(_privateSystemReferencesReference.default.prototype); + RecordReference.prototype = Object.create(_emberDataPrivateSystemReferencesReference.default.prototype); RecordReference.prototype.constructor = RecordReference; - RecordReference.prototype._super$constructor = _privateSystemReferencesReference.default; + RecordReference.prototype._super$constructor = _emberDataPrivateSystemReferencesReference.default; RecordReference.prototype.id = function () { return this._id; }; @@ -15317,58 +15317,58 @@ */ deserialize: null }); }); define("ember-data/version", ["exports"], function (exports) { - exports.default = "2.4.1"; + exports.default = "2.4.2"; }); -define("ember-inflector", ["exports", "ember", "lib/system", "lib/ext/string"], function (exports, _ember, _libSystem, _libExtString) { +define("ember-inflector", ["exports", "ember", "ember-inflector/lib/system", "ember-inflector/lib/ext/string"], function (exports, _ember, _emberInflectorLibSystem, _emberInflectorLibExtString) { - _libSystem.Inflector.defaultRules = _libSystem.defaultRules; - _ember.default.Inflector = _libSystem.Inflector; + _emberInflectorLibSystem.Inflector.defaultRules = _emberInflectorLibSystem.defaultRules; + _ember.default.Inflector = _emberInflectorLibSystem.Inflector; - _ember.default.String.pluralize = _libSystem.pluralize; - _ember.default.String.singularize = _libSystem.singularize; + _ember.default.String.pluralize = _emberInflectorLibSystem.pluralize; + _ember.default.String.singularize = _emberInflectorLibSystem.singularize; - exports.default = _libSystem.Inflector; - exports.pluralize = _libSystem.pluralize; - exports.singularize = _libSystem.singularize; - exports.defaultRules = _libSystem.defaultRules; + exports.default = _emberInflectorLibSystem.Inflector; + exports.pluralize = _emberInflectorLibSystem.pluralize; + exports.singularize = _emberInflectorLibSystem.singularize; + exports.defaultRules = _emberInflectorLibSystem.defaultRules; if (typeof define !== 'undefined' && define.amd) { define('ember-inflector', ['exports'], function (__exports__) { - __exports__['default'] = _libSystem.Inflector; - return _libSystem.Inflector; + __exports__['default'] = _emberInflectorLibSystem.Inflector; + return _emberInflectorLibSystem.Inflector; }); } else if (typeof module !== 'undefined' && module['exports']) { - module['exports'] = _libSystem.Inflector; + module['exports'] = _emberInflectorLibSystem.Inflector; } }); /* global define, module */ -define('ember-inflector/lib/ext/string', ['exports', 'ember', 'lib/system/string'], function (exports, _ember, _libSystemString) { +define('ember-inflector/lib/ext/string', ['exports', 'ember', 'ember-inflector/lib/system/string'], function (exports, _ember, _emberInflectorLibSystemString) { if (_ember.default.EXTEND_PROTOTYPES === true || _ember.default.EXTEND_PROTOTYPES.String) { /** See {{#crossLink "Ember.String/pluralize"}}{{/crossLink}} @method pluralize @for String */ String.prototype.pluralize = function () { - return (0, _libSystemString.pluralize)(this); + return (0, _emberInflectorLibSystemString.pluralize)(this); }; /** See {{#crossLink "Ember.String/singularize"}}{{/crossLink}} @method singularize @for String */ String.prototype.singularize = function () { - return (0, _libSystemString.singularize)(this); + return (0, _emberInflectorLibSystemString.singularize)(this); }; } }); -define('ember-inflector/lib/helpers/pluralize', ['exports', 'ember-inflector', 'lib/utils/make-helper'], function (exports, _emberInflector, _libUtilsMakeHelper) { +define('ember-inflector/lib/helpers/pluralize', ['exports', 'ember-inflector', 'ember-inflector/lib/utils/make-helper'], function (exports, _emberInflector, _emberInflectorLibUtilsMakeHelper) { /** * * If you have Ember Inflector (such as if Ember Data is present), * pluralize a word. For example, turn "ox" into "oxen". @@ -15383,11 +15383,11 @@ * @for Ember.HTMLBars.helpers * @method pluralize * @param {Number|Property} [count] count of objects * @param {String|Property} word word to pluralize */ - exports.default = (0, _libUtilsMakeHelper.default)(function (params) { + exports.default = (0, _emberInflectorLibUtilsMakeHelper.default)(function (params) { var count = undefined, word = undefined; if (params.length === 1) { word = params[0]; @@ -15402,11 +15402,11 @@ return count + " " + word; } }); }); -define('ember-inflector/lib/helpers/singularize', ['exports', 'ember-inflector', 'lib/utils/make-helper'], function (exports, _emberInflector, _libUtilsMakeHelper) { +define('ember-inflector/lib/helpers/singularize', ['exports', 'ember-inflector', 'ember-inflector/lib/utils/make-helper'], function (exports, _emberInflector, _emberInflectorLibUtilsMakeHelper) { /** * * If you have Ember Inflector (such as if Ember Data is present), * singularize a word. For example, turn "oxen" into "ox". @@ -15418,22 +15418,22 @@ * * @for Ember.HTMLBars.helpers * @method singularize * @param {String|Property} word word to singularize */ - exports.default = (0, _libUtilsMakeHelper.default)(function (params) { + exports.default = (0, _emberInflectorLibUtilsMakeHelper.default)(function (params) { return (0, _emberInflector.singularize)(params[0]); }); }); -define("ember-inflector/lib/system", ["exports", "lib/system/inflector", "lib/system/string", "lib/system/inflections"], function (exports, _libSystemInflector, _libSystemString, _libSystemInflections) { +define("ember-inflector/lib/system", ["exports", "ember-inflector/lib/system/inflector", "ember-inflector/lib/system/string", "ember-inflector/lib/system/inflections"], function (exports, _emberInflectorLibSystemInflector, _emberInflectorLibSystemString, _emberInflectorLibSystemInflections) { - _libSystemInflector.default.inflector = new _libSystemInflector.default(_libSystemInflections.default); + _emberInflectorLibSystemInflector.default.inflector = new _emberInflectorLibSystemInflector.default(_emberInflectorLibSystemInflections.default); - exports.Inflector = _libSystemInflector.default; - exports.singularize = _libSystemString.singularize; - exports.pluralize = _libSystemString.pluralize; - exports.defaultRules = _libSystemInflections.default; + exports.Inflector = _emberInflectorLibSystemInflector.default; + exports.singularize = _emberInflectorLibSystemString.singularize; + exports.pluralize = _emberInflectorLibSystemString.pluralize; + exports.defaultRules = _emberInflectorLibSystemInflections.default; }); define('ember-inflector/lib/system/inflections', ['exports'], function (exports) { exports.default = { plurals: [[/$/, 's'], [/s$/i, 's'], [/^(ax|test)is$/i, '$1es'], [/(octop|vir)us$/i, '$1i'], [/(octop|vir)i$/i, '$1i'], [/(alias|status)$/i, '$1es'], [/(bu)s$/i, '$1ses'], [/(buffal|tomat)o$/i, '$1oes'], [/([ti])um$/i, '$1a'], [/([ti])a$/i, '$1a'], [/sis$/i, 'ses'], [/(?:([^f])fe|([lr])f)$/i, '$1$2ves'], [/(hive)$/i, '$1s'], [/([^aeiouy]|qu)y$/i, '$1ies'], [/(x|ch|ss|sh)$/i, '$1es'], [/(matr|vert|ind)(?:ix|ex)$/i, '$1ices'], [/^(m|l)ouse$/i, '$1ice'], [/^(m|l)ice$/i, '$1ice'], [/^(ox)$/i, '$1en'], [/^(oxen)$/i, '$1'], [/(quiz)$/i, '$1zes']], @@ -15747,17 +15747,17 @@ } }; exports.default = Inflector; }); -define('ember-inflector/lib/system/string', ['exports', 'lib/system/inflector'], function (exports, _libSystemInflector) { +define('ember-inflector/lib/system/string', ['exports', 'ember-inflector/lib/system/inflector'], function (exports, _emberInflectorLibSystemInflector) { function pluralize(word) { - return _libSystemInflector.default.inflector.pluralize(word); + return _emberInflectorLibSystemInflector.default.inflector.pluralize(word); } function singularize(word) { - return _libSystemInflector.default.inflector.singularize(word); + return _emberInflectorLibSystemInflector.default.inflector.singularize(word); } exports.pluralize = pluralize; exports.singularize = singularize; });