From 46cefa6e03c63cb092adb45e25ff063db1753179 Mon Sep 17 00:00:00 2001 From: rootnot Date: Tue, 21 Jun 2011 06:33:57 -0700 Subject: [PATCH 1/2] Fixed bug in JSONPWRAP --- lib/createRouter.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/createRouter.js b/lib/createRouter.js index f798a11..8c08421 100644 --- a/lib/createRouter.js +++ b/lib/createRouter.js @@ -276,7 +276,5 @@ var createMetaRoutes = exports.createMetaRoutes = function (module, routes){ } var JSONPWRAP = exports.JSONPWRAP = function(namespace, data) { - return 'function ' + namespace + '() {\ - return "' + data + '"\ - }'; + return namespace + '(' + data + ')'; }; \ No newline at end of file From a1776a9231d83a9d1cf5ed7dc9cd4f1730cf646c Mon Sep 17 00:00:00 2001 From: rootnot Date: Tue, 21 Jun 2011 11:42:30 -0700 Subject: [PATCH 2/2] Edited lib/view.js via GitHub --- lib/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view.js b/lib/view.js index 0aea345..3a66e7e 100644 --- a/lib/view.js +++ b/lib/view.js @@ -82,7 +82,7 @@ var renderRoutes = exports.renderRoutes = function( format, name, items, templat // form html += ('
'); - html += ('
'); + html += (''); for (var arg in s) { html += ('
');