mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b15afea304
commit
be87c9831c
@ -381,7 +381,7 @@ module.makeUIDialog = function(a, b){
|
|||||||
var args = [].slice.call(arguments)
|
var args = [].slice.call(arguments)
|
||||||
|
|
||||||
// see if the first arg is a container spec...
|
// see if the first arg is a container spec...
|
||||||
var container = this.uiContainers.indexOf(args[0]) >= 0 ?
|
var container = this.isUIContainer(args[0]) ?
|
||||||
args.shift()
|
args.shift()
|
||||||
: (dfl || this.config['ui-default-container'] || 'Overlay')
|
: (dfl || this.config['ui-default-container'] || 'Overlay')
|
||||||
|
|
||||||
@ -454,13 +454,16 @@ var DialogsActions = actions.Actions({
|
|||||||
// testers...
|
// testers...
|
||||||
isUIContainer: ['- Interface/',
|
isUIContainer: ['- Interface/',
|
||||||
actions.doWithRootAction(function(action){
|
actions.doWithRootAction(function(action){
|
||||||
return action.__container__ == true })],
|
return action != null
|
||||||
|
&& action.__container__ == true })],
|
||||||
isUIDialog: ['- Interface/',
|
isUIDialog: ['- Interface/',
|
||||||
actions.doWithRootAction(function(action){
|
actions.doWithRootAction(function(action){
|
||||||
return action.__dialog__ == true })],
|
return action != null
|
||||||
|
&& action.__dialog__ == true })],
|
||||||
isUIElement: ['- Interface/',
|
isUIElement: ['- Interface/',
|
||||||
actions.doWithRootAction(function(action){
|
actions.doWithRootAction(function(action){
|
||||||
return action.__dialog__ == true || action.__container__ == true })],
|
return action != null
|
||||||
|
&& (action.__dialog__ == true || action.__container__ == true) })],
|
||||||
|
|
||||||
|
|
||||||
// container constructors...
|
// container constructors...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user