[Code Style] Avoid retaining reference to window

Avoid https://docs.angularjs.org/error/ng/cpws
by changing way reference to  is retained.
WTD-1482.
This commit is contained in:
Victor Woeltjen 2015-08-10 12:39:56 -07:00
parent 3a0ba4f5a6
commit f8a0ddb484

View File

@ -41,14 +41,16 @@ define(
context = context || {};
this.urlService = urlService;
this.$window = $window;
this.open = function () {
$window.open.apply($window, arguments)
};
// Choose the object to be opened into a new tab
this.domainObject = context.selectedObject || context.domainObject;
}
NewTabAction.prototype.perform = function () {
this.$window.open(
this.open(
this.urlService.urlForNewTab("browse", this.domainObject),
"_blank"
);