aboutsummaryrefslogtreecommitdiff
path: root/contexts/data/fiveui/background.js
diff options
context:
space:
mode:
Diffstat (limited to 'contexts/data/fiveui/background.js')
-rw-r--r--contexts/data/fiveui/background.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/contexts/data/fiveui/background.js b/contexts/data/fiveui/background.js
index cdd822e..26fd23f 100644
--- a/contexts/data/fiveui/background.js
+++ b/contexts/data/fiveui/background.js
@@ -19,12 +19,9 @@
* limitations under the License.
*/
-goog.provide('fiveui.Background');
-
-goog.require('fiveui.Settings');
-goog.require('fiveui.State');
-
+fiveui = fiveui || {};
+(function() {
/**
* @constructor
*
@@ -88,12 +85,12 @@ fiveui.Background.prototype._registerUiListeners = function(port, tabState){
bg.updateWidget(tabState);
});
port.on('MaskRules', function(request) {
- goog.structs.forEach(tabState.computePorts, function(cp) {
+ _.each(tabState.computePorts, function(cp) {
cp.emit('MaskRules', null);
});
});
port.on('UnmaskRules', function(request) {
- goog.structs.forEach(tabState.computePorts, function(cp) {
+ _.each(tabState.computePorts, function(cp) {
cp.emit('UnmaskRules', null);
});
});
@@ -208,3 +205,5 @@ fiveui.Background.prototype.showUI = function(tabId) {
tabState.uiPort.emit('ShowUI', null);
}
};
+
+})();