From bc66743b16ddd321649f243f0294ed26bc25ee3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 4 Jun 2013 12:25:37 +0200 Subject: [PATCH] Visual editor: leaking scope fix --- modules/rng.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/rng.js b/modules/rng.js index ffb228d..6068d4d 100644 --- a/modules/rng.js +++ b/modules/rng.js @@ -1,14 +1,15 @@ define(function() { return function(sandbox) { - + 'use strict'; + function addTab(title, slug, view) { sandbox.getModule('tabsManager').addTab(title, slug, view); } /* Events handling */ - eventHandlers = {}; + var eventHandlers = {}; eventHandlers.skelton = { ready: function() { -- 2.20.1