diff -r 00a59060d78d -r 9de33a5ef2b3 src/js/utils.js --- a/src/js/utils.js Fri Jan 13 17:27:54 2012 +0100 +++ b/src/js/utils.js Mon Jan 16 12:12:43 2012 +0100 @@ -148,6 +148,10 @@ return ""; }; +/** test if a value is null or undefined */ +IriSP.null_or_undefined = function(val) { + return (typeof(val) === "undefined" || val === null); +} /* for ie compatibility if (Object.prototype.__defineGetter__&&!Object.defineProperty) { Object.defineProperty=function(obj,prop,desc) {