bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js
function(command) {
			this._commandList[command.id] = command;
			// Resolve any pending key/url bindings against this command
			var pending = this._pendingBindings[command.id];
			if (pending) {
				var _self = this;
				pending.forEach(function(binding) {
					_self._addBinding(command, binding.type, binding.binding, binding.bindingOnly);
				});
				delete this._pendingBindings[command.id];
			}
		}
function(command) {
			this._commandList[command.id] = command;
			// Resolve any pending key/url bindings against this command
			var pending = this._pendingBindings[command.id];
			if (pending) {
				var _self = this;
				pending.forEach(function(binding) {
					_self._addBinding(command, binding.type, binding.binding, binding.bindingOnly);
				});
				delete this._pendingBindings[command.id];
			}
		}
function ( command ) { this . _commandList [ command . id ] = command ; // Resolve any pending key/url bindings against this command var pending = this . _pendingBindings [ command . id ] ; if ( pending ) { var _self = this ; pending . forEach ( function ( binding ) { _self . _addBinding ( command , binding . type , binding . binding , binding . bindingOnly ) ; } ) ; delete this . _pendingBindings [ command . id ] ; } }
Add a command to the command registry.  Nothing will be shown in the UI
until this command is referenced in a contribution.
@param {orion.commands.Command} command The command being added.
@see registerCommandContribution
Add a command to the command registry . Nothing will be shown in the UI until this command is referenced in a contribution .