Skip to content
Permalink
Browse files

fix(window): move windowHasDisabled to global

  • Loading branch information...
huangyoukun committed May 30, 2018
1 parent f8aa711 commit ab129c5920b2bd9af99d466a7ee6e2471396829b
Showing with 3 additions and 3 deletions.
  1. +1 −1 bin/tsw/context.js
  2. +2 −2 bin/tsw/runtime/Window.js
@@ -26,7 +26,7 @@ if (!global.context) {
Object.defineProperty(global, 'window', {
get: function() {

if (Window.windowHasDisabled) {
if (global.windowHasDisabled) {
return undefined;
}

@@ -15,10 +15,10 @@ function Window() {
}

Window.prototype.disable = function() {
Window.windowHasDisabled = true;
global.windowHasDisabled = true;
};

Window.prototype.enable = function() {
Window.windowHasDisabled = false;
global.windowHasDisabled = false;
};

0 comments on commit ab129c5

Please sign in to comment.
You can’t perform that action at this time.