testing

Status
Not open for further replies.

Jung

???
Premium
14,215
2,485
637
Code:
GetSettings: function() {
      var pobj = Components.classes["@chrome://lastread/persist-object;1"]
                    .createInstance(Components.interfaces.nsISupports);
      pobj = pobj.wrappedJSObject;
      if (!pobj)
         throw "Failed to create persistObject.";

      for (var thisField in pobj) {
         if (this.IsPrefOrDefault(thisField)) {
            this[thisField] = pobj[thisField];
         }
      }
   },

PHP:
GetSettings: function() {
      var pobj = Components.classes["@chrome://lastread/persist-object;1"]
                    .createInstance(Components.interfaces.nsISupports);
      pobj = pobj.wrappedJSObject;
      if (!pobj)
         throw "Failed to create persistObject.";

      for (var thisField in pobj) {
         if (this.IsPrefOrDefault(thisField)) {
            this[thisField] = pobj[thisField];
         }
      }
   },
 
Status
Not open for further replies.