From 774e2a1517d8b13b03fdd4015249da253d537d41 Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Mon, 28 May 2012 15:43:39 -0700 Subject: [PATCH] Fix indentation. --- src/static/js/pluginfw/parent_require.js | 29 ++++++++++++------------ 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/static/js/pluginfw/parent_require.js b/src/static/js/pluginfw/parent_require.js index d7f6190d..97168746 100644 --- a/src/static/js/pluginfw/parent_require.js +++ b/src/static/js/pluginfw/parent_require.js @@ -19,19 +19,18 @@ * @params reqModuleName Module name e.g. (ep_etherpad-lite/static/js/plugins) */ exports.getRequirementFromParent = function(requireDefObj, reqModuleName) { - requireDefObj.define(reqModuleName, function(require, exports, module) { - var t = parent; - var max = 0; // make sure I don't go up more than 10 times - while (typeof(t) != "undefined") { - max++; - if (max==10) - break; - if (typeof(t.require) != "undefined") { - module.exports = t.require(reqModuleName); - return; - } - t = t.parent; - } - }); - + requireDefObj.define(reqModuleName, function(require, exports, module) { + var t = parent; + var max = 0; // make sure I don't go up more than 10 times + while (typeof(t) != "undefined") { + max++; + if (max==10) + break; + if (typeof(t.require) != "undefined") { + module.exports = t.require(reqModuleName); + return; + } + t = t.parent; + } + }); }