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

This commit is contained in:
Mark Aherne
2014-07-11 10:48:42 +01:00
parent 728ba52af0
commit 7e7e6cd8ac
73 changed files with 1367 additions and 1031 deletions

View File

@@ -53,9 +53,8 @@ if (typeof doT == 'undefined') {
// All scripts are initialised here, this allows control of init order
$(document).ready(function () {
NanoUtility.init();
NanoStateManager.init();
NanoTemplate.init();
NanoBaseHelpers.init();
NanoUpdate.init();
});
if (!Array.prototype.indexOf)
@@ -139,4 +138,11 @@ String.prototype.toTitleCase = function () {
$.ajaxSetup({
cache: false
});
});
Function.prototype.inheritsFrom = function (parentClassOrObject) {
this.prototype = new parentClassOrObject;
this.prototype.constructor = this;
this.prototype.parent = parentClassOrObject.prototype;
return this;
};