Work in progress on a major revision of the NanoUI templating system.

This commit is contained in:
Mark Aherne
2014-07-15 07:10:57 -04:00
committed by ZomgPonies
parent fc1d61ac98
commit 4b4f85c22e
4 changed files with 18 additions and 23 deletions
+1 -5
View File
@@ -197,11 +197,7 @@ NanoBaseHelpers = function ()
}
};
} ();
$(document).ready(function()
{
NanoBaseHelpers.init();
});
+1 -4
View File
@@ -58,8 +58,5 @@ var NanoTemplate = function () {
}
}
}();
$(document).ready(function () {
NanoTemplate.init();
});
+1 -5
View File
@@ -236,8 +236,4 @@ NanoUpdate = function ()
}
};
} ();
$(document).ready(function()
{
NanoUpdate.init();
});
+15 -9
View File
@@ -6,13 +6,6 @@ var NanoUtility = function ()
return {
init: function ()
{
if (typeof jQuery == 'undefined') {
alert('ERROR: Javascript library failed to load!');
}
if (typeof doT == 'undefined') {
alert('ERROR: Template engine failed to load!');
}
var body = $('body'); // We store data in the body tag, it's as good a place as any
_urlParameters = body.data('urlParameters');
@@ -48,9 +41,22 @@ var NanoUtility = function ()
return queryString;
}
}
} ();
} ();
NanoUtility.init();
if (typeof jQuery == 'undefined') {
alert('ERROR: Javascript library failed to load!');
}
if (typeof doT == 'undefined') {
alert('ERROR: Template engine failed to load!');
}
// All scripts are initialised here, this allows control of init order
$(document).ready(function () {
NanoUtility.init();
NanoTemplate.init();
NanoBaseHelpers.init();
NanoUpdate.init();
});
if (!Array.prototype.indexOf)
{