From 65bdeba38501ee1002c5df3aa5cb902a7bd77795 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 27 Mar 2015 14:21:27 -0400 Subject: [PATCH] helpers.js fix maybe --- public/src/modules/helpers.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js index a0201ed6cc..042075e6a3 100644 --- a/public/src/modules/helpers.js +++ b/public/src/modules/helpers.js @@ -9,9 +9,6 @@ var helpers = {}; - var utils = utils || require('../utils'), - S = S || require('string'); - helpers.displayMenuItem = function(data, index) { var item = data.navigation[index], properties = item.properties; @@ -47,10 +44,12 @@ }; helpers.escape = function(str) { + var utils = utils || require('../utils'); return utils.escapeHTML(str); }; helpers.stripTags = function(str) { + var S = S || require('string'); return S(str).stripTags().s; };