rem: var changed = false;  if (prop && (oldvalue || newvalue) && oldvalue != newvalue) { if (oldvalue && !newvalue) { Bookmarks.Unassert(RDF.GetResource(gBookmarkID), RDF.GetResource(prop), oldvalue); } else if (!oldvalue && newvalue) { Bookmarks.Assert(RDF.GetResource(gBookmarkID), RDF.GetResource(prop), newvalue, true); } else /* if (oldvalue && newvalue) */ { Bookmarks.Change(RDF.GetResource(gBookmarkID), RDF.GetResource(prop), oldvalue, newvalue); }  changed = true; 
add: if ((aOldValue || aNewValue) && aOldValue != aNewValue) { if (aOldValue && !aNewValue) BMDS.Unassert(gResource, aProperty, aOldValue); else if (!aOldValue && aNewValue) BMDS.Assert(gResource, aProperty, aNewValue, true); else /* if (aOldValue && aNewValue) */ BMDS.Change(gResource, aProperty, aOldValue, aNewValue); return true; 
context: function updateAttribute(prop, oldvalue, newvalue){  var changed = false;  if (prop && (oldvalue || newvalue) && oldvalue != newvalue) {    if (oldvalue && !newvalue) {      Bookmarks.Unassert(RDF.GetResource(gBookmarkID),                         RDF.GetResource(prop),                         oldvalue);    }    else if (!oldvalue && newvalue) {      Bookmarks.Assert(RDF.GetResource(gBookmarkID),                       RDF.GetResource(prop),                       newvalue,                       true);    }    else /* if (oldvalue && newvalue) */ {      Bookmarks.Change(RDF.GetResource(gBookmarkID),                       RDF.GetResource(prop),                       oldvalue,                       newvalue);    }    changed = true;  }  return changed;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5597accdfa77990d5b13c182d3077424f8ec174a/bookmarksProperties.js/clean/browser/components/bookmarks/content/bookmarksProperties.js