Commit df79a4fd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Ivan Tyagov

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

parent 345a8461
// 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"],
function (domReady) {
// Place code to be executed when libraries are loaded
// impliticly call RenderJs bootstrap
RenderJs.init(); RenderJs.init();
}); });
\ No newline at end of file
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