home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 83
/
MINAMI83.iso
/
Extra
/
DivXInstaller.exe
/
$PLUGINSDIR
/
GoogleToolbarFirefox.msi
/
xpi
/
amulet-jslib
/
firefox
/
lang.js
< prev
next >
Wrap
Text File
|
2006-08-07
|
563b
|
23 lines
function alert(msg, opt_title) {
opt_title |= "message";
Cc["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Ci.nsIPromptService)
.alert(null, opt_title, msg.toString());
}
function jsInstanceOf(obj, iid) {
try {
obj.QueryInterface(iid);
return true;
} catch (e) {
if (e == Components.results.NS_ERROR_NO_INTERFACE) {
return false;
} else {
throw e;
}
}
}
function BindToObject(func, obj, opt_A, opt_B, opt_C, opt_D, opt_E, opt_F) {
var args = Array.prototype.splice.call(arguments, 1, arguments.length);
return Function.prototype.bind.apply(func, args);
}