From ad7f3d6167e7966e56d1189ac9da410d71e97fbb Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 20 Jan 2015 14:44:21 +0000 Subject: [PATCH] Do not define widget code twice --- src/mibew/js/source/widget.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mibew/js/source/widget.js b/src/mibew/js/source/widget.js index 3de93909..0a307b58 100644 --- a/src/mibew/js/source/widget.js +++ b/src/mibew/js/source/widget.js @@ -22,6 +22,11 @@ var Mibew = Mibew || {}; (function(Mibew){ + if (Mibew.Widget) { + // It seems that the script was already loaded. We do not need to do the + // job twice so just stop here. + return; + } /** * @namespace Holds objects instances