rem: var match = /^(file:\/\/.*\/)([^/]*)$/.exec(window.location.href); 
add: var match = /^(file:\/\/.*\/)([^\/]*)$/.exec(window.location.href); 
context: Freja.Model.prototype.save = function() {	var url = this.url;	var match = /^(file:\/\/.*\/)([^/]*)$/.exec(window.location.href);	if (match) {		url = match[1] + url; // local	}	// since the serialization may fail, we create a deferred for the	// purpose, rather than just returning the sendXMLHttpRequest directly.	var d = Freja._aux.createDeferred();	var req = Freja.AssetManager.openXMLHttpRequest("POST", url);	try {		// for some obscure reason exceptions aren't thrown back if I call the		// shorthand version of sendXMLHttpRequest in IE6.		Freja._aux.sendXMLHttpRequest(req, Freja._aux.serializeXML(this.document)).addCallbacks(Freja._aux.bind(d.callback, d), Freja._aux.bind(d.errback, d));	} catch (ex) {		d.errback(ex);	}	return d;};
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/c4458579cfc160fdea9854c8162900416b9f81e7/Model.js/clean/trunk/src/Model.js