-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix support for reopening LinkView in 1.13
- Loading branch information
Mike North
committed
Jun 29, 2015
1 parent
2dcc809
commit 3dea044
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -512,13 +512,20 @@ var DeprecatedLinkView = LinkComponent.extend({ | |
this._super.apply(this, arguments); | ||
} | ||
}); | ||
var originalReopen = DeprecatedLinkView.reopen; | ||
|
||
DeprecatedLinkView.reopen = function reopenWithDeprecation() { | ||
Ember.deprecate('Ember.LinkView is deprecated. Please use Ember.LinkComponent.', false); | ||
|
||
return originalReopen.apply(this, arguments); | ||
return LinkComponent.reopen.apply(LinkComponent, arguments); | ||
}; | ||
|
||
DeprecatedLinkView.reopenClass({ | ||
extend: function () { | ||
Ember.deprecate('Ember.LinkView is deprecated. Please extend from Ember.LinkComponent.', false); | ||
this._super.apply(this, arguments); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
stefanpenner
Member
|
||
} | ||
}); | ||
|
||
export { DeprecatedLinkView }; | ||
/* DeprecatedLinkView - End*/ | ||
|
||
|
@truenorth I believe that we need a
return
here otherwise when we call extend we getundefined
back.