rem: if (oldvalue && !newvalue) { Bookmarks.Unassert(RDF.GetResource(bookmark_url), RDF.GetResource(prop), oldvalue); } else if (!oldvalue && newvalue) { Bookmarks.Assert(RDF.GetResource(bookmark_url), RDF.GetResource(prop), newvalue, true); } else if (oldvalue && newvalue) { Bookmarks.Change(RDF.GetResource(bookmark_url), RDF.GetResource(prop), oldvalue, newvalue); }  changed = true; } return(changed); 
add: return changed; 
context: function updateAttribute(prop, oldvalue, newvalue){	var changed = false;	if (!prop)	return(changed)    newvalue = (newvalue != '') ? RDF.GetLiteral(newvalue) : null;    if (oldvalue != newvalue)    {      dump("replacing value for " + prop + "\n");      dump("  oldvalue = " + oldvalue + "\n");      dump("  newvalue = " + newvalue + "\n");      if (oldvalue && !newvalue) {        Bookmarks.Unassert(RDF.GetResource(bookmark_url),                           RDF.GetResource(prop),                           oldvalue);      }      else if (!oldvalue && newvalue) {        Bookmarks.Assert(RDF.GetResource(bookmark_url),                         RDF.GetResource(prop),                         newvalue,                         true);      }      else if (oldvalue && newvalue) {        Bookmarks.Change(RDF.GetResource(bookmark_url),                         RDF.GetResource(prop),                         oldvalue,                         newvalue);      }      changed = true;    }  return(changed);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/06cc39f20bee4beae6f95a4f38bb8f56e05a4f5f/bm-props.js/clean/xpfe/components/bookmarks/resources/bm-props.js