build/joosy.js in joosy-1.2.0.alpha.53 vs build/joosy.js in joosy-1.2.0.alpha.54

- old
+ new

@@ -2311,10 +2311,11 @@ Layouts: {}, Controls: {}, initialized: false, loading: true, config: { + test: false, debug: false, templater: { prefix: '' }, router: { @@ -2334,10 +2335,13 @@ } if (window.JoosyEnvironment != null) { Object.merge(this.config, window.JoosyEnvironment, true); } Object.merge(this.config, options, true); + if (this.config.test) { + this.forceSandbox(); + } Joosy.templater(new Joosy.Templaters.JST(this.config.templater)); Joosy.debug(this.config.debug); Joosy.Router.setup(this.config.router, function(action, params) { if (Joosy.Module.hasAncestor(action, Joosy.Page)) { return _this.changePage(action, params); @@ -2377,9 +2381,19 @@ } else { attempt.__bootstrapDefault(this.content()); } return this.page = attempt; } + }, + forceSandbox: function() { + var sandbox; + sandbox = Joosy.uid(); + this.selector = "#" + sandbox; + return $('body').append($('<div/>').attr('id', sandbox).css({ + height: '0px', + width: '0px', + overflow: 'hidden' + })); } }; if ((typeof define !== "undefined" && define !== null ? define.amd : void 0) != null) { define('joosy/application', function() {