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 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 += ('
');