diff --git a/ui (gen4)/features/cli.js b/ui (gen4)/features/cli.js index 56853547..46534b0f 100755 --- a/ui (gen4)/features/cli.js +++ b/ui (gen4)/features/cli.js @@ -93,7 +93,7 @@ module.CLI = core.ImageGridFeatures.Feature({ ], isApplicable: function(){ - return this.runtime == 'node' || this.runtime == 'nw' }, + return this.runtime == 'node' /*|| this.runtime == 'nw'*/ }, actions: CLIActions, diff --git a/ui (gen4)/features/core.js b/ui (gen4)/features/core.js index 5736a8d5..c3b99615 100755 --- a/ui (gen4)/features/core.js +++ b/ui (gen4)/features/core.js @@ -189,6 +189,7 @@ var LifeCycleActions = actions.Actions({ // other... } else { // XXX + console.warn('Unknown runtime:', runtime) } }], // unbind events... @@ -202,16 +203,14 @@ var LifeCycleActions = actions.Actions({ // nw... if(this.__nw_stop_handler && this.runtime == 'nw'){ - //nw.Window.get().off('close', this.__nw_stop_handler) + nw.Window.get().removeAllListeners('close') delete this.__nw_stop_handler } // node... - /* XXX there's no process.off(...) if(this.__stop_handler && this.runtime == 'node'){ - process.off('exit', this.__stop_handler) + process.removeAllListeners('exit') } - */ delete this.__stop_handler diff --git a/ui (gen4)/features/keyboard.js b/ui (gen4)/features/keyboard.js index 63fc7110..47ae93eb 100755 --- a/ui (gen4)/features/keyboard.js +++ b/ui (gen4)/features/keyboard.js @@ -396,7 +396,7 @@ var KeyboardActions = actions.Actions({ this.__keyboard_handler = keyboard.makeKeyboardHandler( function(){ return that.__keyboard_config }, - function(k){ window.DEBUG && console.log(k) }, + function(k){ window.DEBUG && console.log('KEY:', k) }, this) // drop keys if repeating too fast... diff --git a/ui (gen4)/imagegrid/data.js b/ui (gen4)/imagegrid/data.js index 43c3cbee..9356892e 100755 --- a/ui (gen4)/imagegrid/data.js +++ b/ui (gen4)/imagegrid/data.js @@ -2227,7 +2227,7 @@ var DataPrototype = { // split the data into three sections... var res = this.split(start, end) - var rest = res.splice(1) + var rest = res.shift() // set the base ribbon on the middle section... rest[0].setBase(0) diff --git a/ui (gen4)/imagegrid/ribbons.js b/ui (gen4)/imagegrid/ribbons.js index 753b381c..9c9293b2 100755 --- a/ui (gen4)/imagegrid/ribbons.js +++ b/ui (gen4)/imagegrid/ribbons.js @@ -230,6 +230,7 @@ var RibbonsClassPrototype = { createViewer: function(){ return $('