diff --git a/build/liveview.js b/build/liveview.js index 714eb59..3ed3870 100644 --- a/build/liveview.js +++ b/build/liveview.js @@ -669,4 +669,8 @@ Module.prototype.cache = function() { Module.patch(globalScope); + // Prevent display from sleeping + + Titanium.App.idleTimerDisabled = true; + })(this); \ No newline at end of file diff --git a/build/liveview.min.js b/build/liveview.min.js index 0b018e9..42922f4 100644 --- a/build/liveview.min.js +++ b/build/liveview.min.js @@ -1,4 +1 @@ -/*! - * liveview Titanium CommonJS require with some Node.js love and dirty hacks - * Copyright (c) 2013 Appcelerator - */(function(globalScope){function Process(){if(!(this instanceof Process))return new Process;this.title="titanium",this.version="",this.moduleLoadList=[],this.versions={},this.arch=Ti.Platform.architecture,this.platform=Ti.Platform.osname,this.hardware=(""+Ti.Platform.model).replace("google_")}function Emitter(obj){if(obj)return mixin(obj)}function mixin(obj){for(var key in Emitter.prototype)obj[key]=Emitter.prototype[key];return obj}function Socket(opts){if(!(this instanceof Socket))return new Socket(opts);opts=opts||{},this.timeout=5e3,this.host=opts.host,this.port=opts.port,this.retry=opts.retry,this.bytesRead=0,this.bytesWritten=0,this.ignore=[]}function Module(id){this.filename=id+".js",this.id=id,this.exports={},this.loaded=!1}Process.prototype.__proto__=Emitter.prototype,Emitter.prototype.on=function(event,fn){return this._callbacks=this._callbacks||{},(this._callbacks[event]=this._callbacks[event]||[]).push(fn),this},Emitter.prototype.once=function(event,fn){function on(){self.off(event,on),fn.apply(this,arguments)}var self=this;return this._callbacks=this._callbacks||{},fn._off=on,this.on(event,on),this},Emitter.prototype.off=function(event,fn){this._callbacks=this._callbacks||{};var callbacks=this._callbacks[event];if(!callbacks)return this;if(1==arguments.length)return delete this._callbacks[event],this;var i=callbacks.indexOf(fn._off||fn);return~i&&callbacks.splice(i,1),this},Emitter.prototype.emit=function(event){this._callbacks=this._callbacks||{};var args=[].slice.call(arguments,1),callbacks=this._callbacks[event];if(callbacks){callbacks=callbacks.slice(0);for(var i=0,len=callbacks.length;i