mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
fixed a verry subtle issure with .config...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
599d572f3a
commit
197fcf3829
@ -311,7 +311,7 @@ module.makeWorkspaceConfigLoader = function(keys, callback){
|
||||
|
||||
keys = typeof(keys) == typeof(function(){}) ? keys() : keys
|
||||
|
||||
// load statusbar data...
|
||||
// load data...
|
||||
keys.forEach(function(key){
|
||||
// the key exists...
|
||||
if(key in workspace){
|
||||
|
||||
@ -1830,8 +1830,7 @@ var ControlActions = actions.Actions({
|
||||
threshold: this.config['ribbon-pan-threshold'],
|
||||
})
|
||||
|
||||
r
|
||||
.on('pan', function(evt){
|
||||
r.on('pan', function(evt){
|
||||
//evt.stopPropagation()
|
||||
|
||||
// XXX stop all previous animations...
|
||||
|
||||
@ -233,9 +233,11 @@ body {
|
||||
</style>
|
||||
|
||||
<script>
|
||||
window.__devtools_failsafe = setTimeout(function(){
|
||||
typeof(require) != 'undefined' && nw.Window.get().showDevTools()
|
||||
}, 1000)
|
||||
if(window.require && window.nw){
|
||||
window.__devtools_failsafe = setTimeout(function(){
|
||||
nw.Window.get().showDevTools()
|
||||
}, 1000)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@ -102,19 +102,19 @@ module.FeatureProto = {
|
||||
}
|
||||
|
||||
// merge config...
|
||||
// XXX should this use inheritance???
|
||||
// XXX do we need to clone .config?
|
||||
// NOTE: this will merge the actual config in .config.__proto__
|
||||
// keeping the .config clean for the user to lay with...
|
||||
if(this.config != null
|
||||
|| (this.actions != null
|
||||
&& this.actions.config != null)){
|
||||
var config = this.config = this.config || this.actions.config
|
||||
|
||||
if(actions.config == null){
|
||||
actions.config = {}
|
||||
actions.config = Object.create({})
|
||||
}
|
||||
Object.keys(config).forEach(function(n){
|
||||
// NOTE: this will overwrite existing values...
|
||||
actions.config[n] = config[n]
|
||||
actions.config.__proto__[n] = config[n]
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -340,6 +340,10 @@ function CSSClassToggler(elem, classes, callback_a, callback_b){
|
||||
: classes_set
|
||||
classes = typeof(classes) == typeof('str') ? ['none', classes] : classes
|
||||
|
||||
if(classes == null){
|
||||
console.log('!!!!!!')
|
||||
}
|
||||
|
||||
// remove the dot from class names...
|
||||
// NOTE: this is here because I've made the error of including a
|
||||
// leading "." almost every time I use this after I forget
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"toolbar": false,
|
||||
"show": false
|
||||
},
|
||||
"chromium-args": "",
|
||||
"chromium-args": "--disable-gpu-compositing",
|
||||
"dependencies": {
|
||||
"app-module-path": "^1.0.6",
|
||||
"commander": "^2.9.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user