From a0911d2b9dc2fd2ada4b215e78a29447b0070a0e Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Thu, 25 Aug 2016 09:04:06 -0700 Subject: [PATCH] add local scope wrappers to new default scripts --- scripts/system/marketplaces/marketplace.js | 4 ++++ scripts/system/snapshot.js | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/scripts/system/marketplaces/marketplace.js b/scripts/system/marketplaces/marketplace.js index 2bd6033e62..349c3f70e1 100644 --- a/scripts/system/marketplaces/marketplace.js +++ b/scripts/system/marketplaces/marketplace.js @@ -8,6 +8,8 @@ // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // +(function() { // BEGIN LOCAL_SCOPE + /* global WebTablet */ Script.include("../libraries/WebTablet.js"); @@ -100,3 +102,5 @@ Script.scriptEnding.connect(function () { browseExamplesButton.clicked.disconnect(onClick); marketplaceWindow.visibleChanged.disconnect(onMarketplaceWindowVisibilityChanged); }); + +}()); // END LOCAL_SCOPE diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index 2f3b8862c2..c9876af039 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -7,6 +7,9 @@ // Distributed under the Apache License, Version 2.0 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // + +(function() { // BEGIN LOCAL_SCOPE + var SNAPSHOT_DELAY = 500; // 500ms var toolBar = Toolbars.getToolbar("com.highfidelity.interface.toolbar.system"); var resetOverlays; @@ -152,3 +155,5 @@ Script.scriptEnding.connect(function () { button.clicked.disconnect(onClicked); Window.snapshotShared.disconnect(snapshotShared); }); + +}()); // END LOCAL_SCOPE