From 925dcb46b69e7bddca803326b724c4d06e70d2ef Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 11 Jul 2013 14:53:53 +0000 Subject: [PATCH] feature(main) add diff --- lib/server/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/server/main.js b/lib/server/main.js index e2d4a5e4..e1e9cffb 100644 --- a/lib/server/main.js +++ b/lib/server/main.js @@ -6,6 +6,7 @@ var DIR, LIBDIR, SRVDIR, JSONDIR, HTMLDIR, Util, + UTIL = 'util', SLASH, ISWIN32, @@ -74,8 +75,9 @@ /* Needed Modules */ - /* we can not use librequare heare */ - exports.util = Util = require(LIBDIR + 'util'), + /* we can not use librequare here */ + exports.util = Util = require(LIBDIR + UTIL), + exports.diff = mrequire(LIBDIR + UTIL + '/jsdiff/diff'), exports.zlib = zlib = mrequire('zlib'),