Add a function to test if a variable is undefined.

This commit is contained in:
Sébastien Lucas 2013-06-20 11:11:01 +02:00
parent d4af721516
commit 51c9c416d4

View file

@ -23,6 +23,11 @@ function strformat () {
return s;
}
function isDefined(x) {
var undefined;
return x !== undefined;
}
function getCurrentOption (option) {
return $.cookie (option);
}