Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1383 from internets/1370
Browse files Browse the repository at this point in the history
Fix deprecations from deprecation-workflow
  • Loading branch information
tangollama authored Mar 22, 2018
2 parents 4c2db5c + 2140450 commit 89bd15d
Show file tree
Hide file tree
Showing 9 changed files with 640 additions and 910 deletions.
2 changes: 1 addition & 1 deletion app/components/date-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ export default EmInput.extend(PikadayComponent, {
let displayPropertyName = `display_${dateProperty}`;
this.currentDate = Ember.computed.alias(`model.${dateProperty}`);
this.addObserver(`model.${dateProperty}`, this, this.currentDateChangedValue);
Ember.Binding.from(`model.errors.${dateProperty}`).to(`model.errors.${displayPropertyName}`).connect(this);
Ember.defineProperty(this, `model.errors.${displayPropertyName}`, Ember.computed.alias(`model.errors.${dateProperty}`));
}
});
4 changes: 2 additions & 2 deletions app/components/inventory-location-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default Ember.Component.extend({
},

_setup: function() {
Ember.Binding.from('selectedLocations').to('componentSelectedLocations').connect(this);
Ember.defineProperty(this, 'componentSelectedLocations', Ember.computed.alias('selectedLocations'));
}.on('init'),

_setupLocationPickers(locationPickers, locationList, setInitialLocation) {
Expand Down Expand Up @@ -83,7 +83,7 @@ export default Ember.Component.extend({
return (previousValue + location.get('quantity'));
}, 0);
this._setupLocationPickers(locationPickers, locationList, true);
this.locationChange();
Ember.run.scheduleOnce('afterRender', this, this.locationChange);
this.set('doingSetup', false);
return this.get('calculatedLocationPickers');
}.property('calculatedLocationPickers', 'locationList', 'quantityRequested')
Expand Down
2 changes: 0 additions & 2 deletions config/deprecation-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ window.deprecationWorkflow = window.deprecationWorkflow || {};
window.deprecationWorkflow.config = {
workflow: [
{ handler: 'silence', matchId: 'ember-getowner-polyfill.import' },
{ handler: 'silence', matchId: 'ember-metal.binding' },
{ handler: 'silence', matchId: 'ember-views.did-init-attrs' },
{ handler: 'silence', matchId: 'ds.serializer.private-should-serialize-has-many' }
]
};
Loading

0 comments on commit 89bd15d

Please sign in to comment.