mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
fixed a minor error...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
63c14f7c4f
commit
599d572f3a
@ -8,7 +8,8 @@
|
||||
|
||||
define(function(require){ var module = {}
|
||||
|
||||
//var DEBUG = DEBUG != null ? DEBUG : true
|
||||
// XXX
|
||||
var DEBUG = typeof(DEBUG) != 'undefined' ? DEBUG : true
|
||||
|
||||
var actions = require('lib/actions')
|
||||
var features = require('lib/features')
|
||||
@ -157,7 +158,10 @@ var LifeCycleActions = actions.Actions({
|
||||
// in case something breaks exit...
|
||||
// XXX not sure if this is correct...
|
||||
} catch(e){
|
||||
this.close(true)
|
||||
console.log('ERROR:', e)
|
||||
|
||||
DEBUG || nw.App.quit()
|
||||
//this.close(true)
|
||||
}
|
||||
}
|
||||
nw.Window.get().on('close', this.__nw_stop_handler)
|
||||
|
||||
@ -1935,7 +1935,8 @@ var ControlActions = actions.Actions({
|
||||
this.data.ribbon_order.forEach(function(gid){
|
||||
var r = that.ribbons.getRibbon(gid)
|
||||
|
||||
r.data('hammer').destroy()
|
||||
var h = r.data('hammer')
|
||||
h && h.destroy()
|
||||
|
||||
r
|
||||
.removeClass('draggable')
|
||||
@ -1986,7 +1987,8 @@ var ControlActions = actions.Actions({
|
||||
|
||||
// off...
|
||||
} else {
|
||||
viewer.data('hammer').destroy()
|
||||
var h = viewer.data('hammer')
|
||||
h && h.destroy()
|
||||
|
||||
viewer
|
||||
.removeClass('swipable')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user