From: Aleksander Ɓukasz Date: Tue, 4 Jun 2013 10:25:37 +0000 (+0200) Subject: Visual editor: leaking scope fix X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/bc66743b16ddd321649f243f0294ed26bc25ee3e?ds=inline Visual editor: leaking scope fix --- 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() {