rem:  if (extensionManager.getItemForID) { var installed = extensionManager.getItemForID(GUID).version; } else { installed = extensionManager .getItemList(GUID, Components.interfaces.nsIUpdateItem.TYPE_EXTENSION,{})[0].version; 
add:  if (extensionManager.getItemForID) { var installed = extensionManager.getItemForID(GUID).version; } else { installed = extensionManager .getItemList(GUID, Components.interfaces.nsIUpdateItem.TYPE_EXTENSION,{})[0].version; } 
context: function GM_updateVersion(prefMan) {  var extensionManager = Components.classes["@mozilla.org/extensions/manager;1"]   .getService(Components.interfaces.nsIExtensionManager);  // get the currently installed version according to extension manager  if (extensionManager.getItemForID) {    var installed = extensionManager.getItemForID(GUID).version;  } else { // getItemForID isn't available on the Aviary 1.0 branch    installed = extensionManager       .getItemList(GUID, Components.interfaces.nsIUpdateItem.TYPE_EXTENSION,{})[0].version;  }  // this is the last version which has been run at least once  var initialized = prefMan.getValue("version");      if (installed == initialized) {    return;  }  // for now, we don't have to do any schmancy version comparisons because  // we never had versions before.  if (!initialized) {    GM_pointThreeMigrate();  }  // update the currently initialized version so we don't do this work again.  prefMan.setValue("version", installed);}
meta: 4585	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4585/e2ff2c9cbb759f91bf5a308f212528d3a046209f/versioning.js/buggy/src/content/versioning.js