Commit 65eaf79e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

rewrite require-renderjs.js so that it respects dependencies and also loads required jquery-json.

parent ca24c0ed
// JavaScript file that is used to load RenderJs depenencies // JavaScript file that is used to load RenderJs depenencies
require.config({
paths: {
jquery: "lib/jquery/jquery",
"jquery.json": "lib/json/jquery.json.min",
renderjs: "renderjs"
},
shim: {
"jquery.json": [ "jquery" ],
renderjs: [ "jquery", "jquery.json" ]
}
});
require(["../../lib/jquery/jquery.js", require([ "jquery", "jquery.json", "renderjs" ], function(domReady) {
"../../renderjs.js"], RenderJs.init();
function (domReady) { });
// Place code to be executed when libraries are loaded \ No newline at end of file
// impliticly call RenderJs bootstrap
RenderJs.init();
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment