context: 		setContent: function(/*String||DomNode*/ data){			// summary:			//		Replaces old content with data content, include style classes from old content			//	data:	new content, be it Document fragment or a DomNode chain			//			If data contains style tags, link rel=stylesheet it inserts those styles into DOM			this.abort();			if(this._callOnUnload){ this.onUnload(); }// this tells a remote script clean up after itself			this._callOnUnload = true;				if(!data || dojo.html.isNode(data)){				// if we do a clean using setContent(""); or setContent(#node) bypass all parsing, extractContent etc				this._setContent(data);				this.onResized();				this.onLoad();			}else{				// need to run splitAndFixPaths? ie. manually setting content				// adjustPaths is taken care of inside splitAndFixPaths				if(typeof data.xml != "string"){ 					this.href = ""; // so we can refresh safely					data = this.splitAndFixPaths(data); 				}				this._setContent(data.xml);				// insert styles from content (in same order they came in)				for(var i = 0; i < data.styles.length; i++){					if(data.styles[i].path){						this._styleNodes.push(dojo.html.insertCssFile(data.styles[i].path));					}else{						this._styleNodes.push(dojo.html.insertCssText(data.styles[i]));					}				}					if(this.parseContent){					for(var i = 0; i < data.requires.length; i++){						try{							eval(data.requires[i]);						} catch(e){							e.text = "ContentPane: error in package loading calls, " + (e.description||e);							this._handleDefaults(e, "onContentError", "debug");						}					}				}				// need to allow async load, Xdomain uses it				// is inline function because we cant send args to dojo.addOnLoad				var _self = this;				function asyncParse(){					if(_self.executeScripts){						_self._executeScripts(data.scripts);					}						if(_self.parseContent){						var node = _self.containerNode || _self.domNode;						var parser = new dojo.xml.Parse();						var frag = parser.parseElement(node, null, true);						// createSubComponents not createComponents because frag has already been created						dojo.widget.getParser().createSubComponents(frag, _self);					}						_self.onResized();					_self.onLoad();				}				// try as long as possible to make setContent sync call				if(dojo.hostenv.isXDomain && data.requires.length){					dojo.addOnLoad(asyncParse);				}else{					asyncParse();				}			}		},
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/ContentPane.js/buggy/www/resources/dojo-ajax/src/widget/ContentPane.js