src/js/utils.js
branchpopcorn-port
changeset 634 9de33a5ef2b3
parent 584 f90c88ab9a26
child 640 a6b64eeeb76d
--- 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) {