bundles/org.eclipse.orion.client.ui/web/orion/sites/SiteEditor.js
function(location) {
		var deferred = new Deferred();
		this._busyWhile(deferred, messages["Loading..."]);
		this._siteClient.loadSiteConfiguration(location).then(
			function(siteConfig) {
				this._setSiteConfiguration(siteConfig);
				this.setDirty(false);
				deferred.resolve(siteConfig);
			}.bind(this),
			function(error) {
				deferred.reject(error);
			});
		return deferred;
	}
function(location) {
		var deferred = new Deferred();
		this._busyWhile(deferred, messages["Loading..."]);
		this._siteClient.loadSiteConfiguration(location).then(
			function(siteConfig) {
				this._setSiteConfiguration(siteConfig);
				this.setDirty(false);
				deferred.resolve(siteConfig);
			}.bind(this),
			function(error) {
				deferred.reject(error);
			});
		return deferred;
	}
function ( location ) { var deferred = new Deferred ( ) ; this . _busyWhile ( deferred , messages [ "Loading..." ] ) ; this . _siteClient . loadSiteConfiguration ( location ) . then ( function ( siteConfig ) { this . _setSiteConfiguration ( siteConfig ) ; this . setDirty ( false ) ; deferred . resolve ( siteConfig ) ; } . bind ( this ) , function ( error ) { deferred . reject ( error ) ; } ) ; return deferred ; }
Loads site configuration from a URL into the editor.
@param {String} location URL of the site configuration to load.
@returns {orion.Promise} A promise, resolved when the editor has loaded & refreshed itself.
Loads site configuration from a URL into the editor .