Add a function to test if a variable is undefined.
This commit is contained in:
parent
d4af721516
commit
51c9c416d4
1 changed files with 5 additions and 0 deletions
5
util.js
5
util.js
|
@ -23,6 +23,11 @@ function strformat () {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isDefined(x) {
|
||||||
|
var undefined;
|
||||||
|
return x !== undefined;
|
||||||
|
}
|
||||||
|
|
||||||
function getCurrentOption (option) {
|
function getCurrentOption (option) {
|
||||||
return $.cookie (option);
|
return $.cookie (option);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue