Skip to content

Commit

Permalink
[CLEANUP beta] Remove deprecated LinkView
Browse files Browse the repository at this point in the history
  • Loading branch information
cibernox committed Jun 14, 2015
1 parent bdc2f69 commit 6c41761
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
3 changes: 1 addition & 2 deletions packages/ember-routing-views/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@

import Ember from "ember-metal/core";
import isEnabled from "ember-metal/features";
import LinkComponent, { DeprecatedLinkView } from "ember-routing-views/views/link";
import LinkComponent from "ember-routing-views/views/link";
import {
OutletView,
CoreOutletView
} from "ember-routing-views/views/outlet";

Ember.LinkView = DeprecatedLinkView;
Ember.LinkComponent = LinkComponent;
Ember.OutletView = OutletView;
if (isEnabled('ember-routing-core-outlet')) {
Expand Down
16 changes: 0 additions & 16 deletions packages/ember-routing-views/lib/views/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,20 +504,4 @@ function getResolvedQueryParams(queryParamsObject, targetRouteName) {
return resolvedQueryParams;
}

/* DeprecatedLinkView - Start: TODO: Delete in Ember 2.0 */
var DeprecatedLinkView = LinkComponent.extend({
init() {
Ember.deprecate('Ember.LinkView is deprecated. Please use Ember.LinkComponent.', false);
this._super.apply(this, arguments);
}
});
var originalReopen = DeprecatedLinkView.reopen;

DeprecatedLinkView.reopen = function reopenWithDeprecation() {
Ember.deprecate('Ember.LinkView is deprecated. Please use Ember.LinkComponent.', false);
originalReopen.apply(this, arguments);
};
export { DeprecatedLinkView };
/* DeprecatedLinkView - End*/

export default LinkComponent;
10 changes: 0 additions & 10 deletions packages/ember-routing-views/tests/main_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,3 @@ QUnit.test("exports correctly", function() {
ok(Ember.LinkComponent, "LinkComponent is exported correctly");
ok(Ember.OutletView, "OutletView is exported correctly");
});

QUnit.test("Ember.LinkView throws a deprecation warning when instantiated", function() {
expectDeprecation(/Ember.LinkView is deprecated. Please use Ember.LinkComponent/);
Ember.LinkView.create();
});

QUnit.test("Ember.LinkView throws a deprecation warning when reopened", function() {
expectDeprecation(/Ember.LinkView is deprecated. Please use Ember.LinkComponent/);
Ember.LinkView.reopen({});
});

0 comments on commit 6c41761

Please sign in to comment.