Skip to content

Commit

Permalink
Now uses encode/decode URIComponent to transport args string
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Lesperance committed Oct 20, 2011
1 parent f350a5e commit 4e000ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/controller.js
Expand Up @@ -49,7 +49,7 @@ var rocket_tmpl = {};
, " load : '/js/rocket/vendors/require-0.27.1.min.js'"
, " , callback : function() {"
, " window.require || document.write('<script src=\"/js/rocket/vendors/require-0.27.1.min.js\"><\\/script>')"
, ( typeof controller_name !== 'undefined' ? " require(['" + controller_name + "' + '_client' ], function(m) { m.init.apply(m" + (args.length > 0 ? ", " + 'JSON.parse("' + JSON.stringify(args) + '")' : '') + ");} ); ": "")
, ( typeof controller_name !== 'undefined' ? " require(['" + controller_name + "' + '_client' ], function(m) { m.init.apply(m" + (args.length > 0 ? ", " + 'decodeURIComponent(JSON.parse(\'' + encodeURIComponent(JSON.stringify(args)) + '\'))' : '') + ");} ); ": "")
, " }"
, " }"
, " ]);"
Expand Down

0 comments on commit 4e000ee

Please sign in to comment.