minor cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-05-14 23:09:54 +03:00
parent b15afea304
commit be87c9831c

View File

@ -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...