a1ed9adf92
Ember.ObjectController (and Ember.ArrayController) will be deprecated in Ember 1.11 (and removed from core in Ember 2.0). The reasoning is detailed in the Ember 2.0 RFC. This PR does the following: * Updates templates/controllers/views to explicitly reference model properties (instead of relying on proxying behavior). * Clearly delineate where certain properties are being set or retrieved from (for example it was not clear exactly where `scratch` and `titleScratch` were stored). * Remove usage of `Ember.ObjectController`. * Add JSCS rule to prevent future PR's from adding regressions.
14 lines
373 B
JavaScript
14 lines
373 B
JavaScript
Ember.LinkView.reopen({
|
|
active: Ember.computed('loadedParams', 'resolvedParams', 'routeArgs', function () {
|
|
var isActive = this._super();
|
|
|
|
Ember.set(this, 'alternateActive', isActive);
|
|
|
|
return isActive;
|
|
}),
|
|
|
|
activeClass: Ember.computed('tagName', function () {
|
|
return this.get('tagName') === 'button' ? '' : 'active';
|
|
})
|
|
});
|