src/js/utils.js
branchpopcorn-port
changeset 634 9de33a5ef2b3
parent 584 f90c88ab9a26
child 640 a6b64eeeb76d
equal deleted inserted replaced
633:00a59060d78d 634:9de33a5ef2b3
   146 /** returns an url to share on google + */
   146 /** returns an url to share on google + */
   147 IriSP.mkGplusUrl = function(url) {
   147 IriSP.mkGplusUrl = function(url) {
   148   return "";
   148   return "";
   149 };
   149 };
   150 
   150 
       
   151 /** test if a value is null or undefined */
       
   152 IriSP.null_or_undefined = function(val) {
       
   153   return (typeof(val) === "undefined" || val === null);
       
   154 }
   151 /* for ie compatibility
   155 /* for ie compatibility
   152 if (Object.prototype.__defineGetter__&&!Object.defineProperty) {
   156 if (Object.prototype.__defineGetter__&&!Object.defineProperty) {
   153    Object.defineProperty=function(obj,prop,desc) {
   157    Object.defineProperty=function(obj,prop,desc) {
   154       if ("get" in desc) obj.__defineGetter__(prop,desc.get);
   158       if ("get" in desc) obj.__defineGetter__(prop,desc.get);
   155       if ("set" in desc) obj.__defineSetter__(prop,desc.set);
   159       if ("set" in desc) obj.__defineSetter__(prop,desc.set);