Open juwara0 opened 7 years ago
@notmessenger can provide a failing example
Notes anyone can ask me about
https://github.com/emberjs/data/commit/0ab7698fffe3c4b51646bb1b72207685c95c78fb
_modelFactoryFor(modelName) {
heimdall.increment(modelFor);
let factory = this._modelClassCache[modelName];
if (!factory) {
factory = this.modelFactoryFor(modelName);
if (!factory) {
//Support looking up mixins as base types for polymorphic relationships
factory = this._modelForMixin(modelName);
}
if (!factory) {
throw new EmberError(`No model was found for '${modelName}'`);
}
// interopt with the future
let klass = getOwner(this).factoryFor ? factory.class : factory;
assert(`'${inspect(klass)}' does not appear to be an ember-data model`, klass.isModel);
// TODO: deprecate this
klass.modelName = klass.modelName || modelName;
this._modelClassCache[modelName] = factory;
}
return factory;
},
https://github.com/ember-intl/ember-intl/commit/4cf6669791f661856199cae4293caa0d5028ad83
- const Klass = owner.factoryFor('model:ember-intl-translation') || Translation; + let Klass;
- const ModelKlass = Klass.extend(); + if (owner.hasRegistration('model:ember-intl-translation')) {
+ Klass = owner.factoryFor('model:ember-intl-translation').class;
+ } else {
+ Klass = Translation;
+ }
+ const ModelKlass = Klass.extend();
https://github.com/scoutforpets/ember-fullcalendar/pull/44/files
https://github.com/scoutforpets/ember-fullcalendar/issues/43
- const applicationConfig = getOwner(this)._lookupFactory('config:environment');
+ const applicationConfig = getOwner(this).resolveRegistration('config:environment');
When using the
helper
function https://github.com/ciena-blueplanet/ember-test-utils/blob/265973b92d856615dee92e5ec2368b1170b5111f/addon-test-support/setup-test.js#L154 from setup-test.js in an add-on running Ember CLI 2.12.3 the following error is thrown: