From 24a2a27d60a0b9e619eaec56d8a3fbe560c3ec4e Mon Sep 17 00:00:00 2001 From: Bruce Date: Sun, 28 Feb 2016 22:48:56 +1100 Subject: [PATCH] bug fix --- dist/simple.dev.js | 2 +- dist/simple.min.js | 4 +++- src/app.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dist/simple.dev.js b/dist/simple.dev.js index 5c9f9dc..f1161c4 100644 --- a/dist/simple.dev.js +++ b/dist/simple.dev.js @@ -797,7 +797,7 @@ var z = {}; * @param {object} [config={}] | note: this is the system config * @returns {SimpleApp} */ -var SimpleApp = function (name, config) { +w.SimpleApp = function (name, config) { if (!z[name]) z[name] = new app(name, config); return z[name]; }; diff --git a/dist/simple.min.js b/dist/simple.min.js index fe47b22..bc9c9f6 100644 --- a/dist/simple.min.js +++ b/dist/simple.min.js @@ -79,4 +79,6 @@ if(k){var w=new s(r,k.parentNode) return w.right(),!1}}if(!e&&this.cnf.partialRender===!0&&r){var C=this.node(t),D=null if(C)return D=new s(r),D.replace(C),!1}return r},this.init=function(t,e){t&&(this.container=t),this.load(),e!==!1&&(this._f("sta"),this.render(),this._f("fin"))},this.toQuerystring=function(){var t=[] for(var e in this.state){var i=this.state[e] -i&&t.push(e+"="+i)}return t.join("&")},this.d=function(t,e){return e?"object"==typeof this.data[t].element&&this.data[t].element[e]?this.data[t].element[e]:void 0:this.data[t]}},"undefined"!=typeof exports&&(exports.SimpleApp=i.SimpleApp)}(this) +i&&t.push(e+"="+i)}return t.join("&")},this.d=function(t,e){return e?"object"==typeof this.data[t].element&&this.data[t].element[e]?this.data[t].element[e]:void 0:this.data[t]}} +var o={} +i.SimpleApp=function(t,e){return o[t]||(o[t]=new r(t,e)),o[t]},"undefined"!=typeof exports&&(exports.SimpleApp=i.SimpleApp)}(this) diff --git a/src/app.js b/src/app.js index 394270d..5aeea28 100644 --- a/src/app.js +++ b/src/app.js @@ -796,7 +796,7 @@ var z = {}; * @param {object} [config={}] | note: this is the system config * @returns {SimpleApp} */ -var SimpleApp = function (name, config) { +w.SimpleApp = function (name, config) { if (!z[name]) z[name] = new app(name, config); return z[name]; };