1 /*
  2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
  3 For licensing, see LICENSE.html or http://ckeditor.com/license
  4 */
  5
  6 CKEDITOR.command = function( editor, commandDefinition )
  7 {
  8 	this.state = CKEDITOR.TRISTATE_OFF;
  9
 10 	this.exec = function()
 11 	{
 12 		commandDefinition.exec.call( this, editor );
 13 	};
 14
 15 	CKEDITOR.tools.extend( this, commandDefinition );
 16
 17 	// Call the CKEDITOR.event constructor to initialize this instance.
 18 	CKEDITOR.event.call( this );
 19 };
 20
 21 CKEDITOR.event.implementOn( CKEDITOR.command.prototype );
 22