23 lines
351 B
JavaScript
23 lines
351 B
JavaScript
|
/**
|
||
|
* construct an application object so that we can use
|
||
|
* skins for non-active applications too
|
||
|
* @arg name
|
||
|
*/
|
||
|
function constructor(name) {
|
||
|
this.name = name;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
* return true/false to determine if application is running
|
||
|
*/
|
||
|
function isActive() {
|
||
|
if ( root.getApplication(this.name)==null )
|
||
|
return false;
|
||
|
else
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
|