dialog('isOpen') always "open"
I'm trying to determine is a dialog is open or not.
When I us dialog("isOpen") it seems to always return some big jquery
object instead of true or false.
The following code echos "OPEN" twice:
$('#terminal').dialog('open');
if($('#terminal').dialog('isOpen')){
console.log("OPEN");
} else {
console.log("CLOSE");
}
$('#terminal').dialog('close');
if($('#terminal').dialog('isOpen')){
console.log("OPEN");
} else {
console.log("CLOSE");
}
What am I doing wrong?
thanks,
paul w.