return this.getValue() != this.getInitValue();\r
},\r
\r
- reset : function()\r
+ reset : function( noChangeEvent )\r
{\r
- this.setValue( this.getInitValue() );\r
+ this.setValue( this.getInitValue(), noChangeEvent );\r
},\r
\r
setInitValue : function()\r
setValue : function( value )\r
{\r
!value && ( value = '' );\r
- return CKEDITOR.ui.dialog.uiElement.prototype.setValue.call( this, value );\r
+ return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply( this, arguments );\r
},\r
\r
keyboardFocusable : true\r
* Sets the state of the checkbox.\r
* @example\r
* @param {Boolean} true to tick the checkbox, false to untick it.\r
+ * @param {Boolean} noChangeEvent Internal commit, to supress 'change' event on this element.\r
*/\r
- setValue : function( checked )\r
+ setValue : function( checked, noChangeEvent )\r
{\r
this.getInputElement().$.checked = checked;\r
- this.fire( 'change', { value : checked } );\r
+ !noChangeEvent && this.fire( 'change', { value : checked } );\r
},\r
\r
/**\r
* Checks one of the radio buttons in this button group.\r
* @example\r
* @param {String} value The value of the button to be chcked.\r
+ * @param {Boolean} noChangeEvent Internal commit, to supress 'change' event on this element.\r
*/\r
- setValue : function( value )\r
+ setValue : function( value, noChangeEvent )\r
{\r
var children = this._.children,\r
item;\r
for ( var i = 0 ; ( i < children.length ) && ( item = children[i] ) ; i++ )\r
item.getElement().$.checked = ( item.getValue() == value );\r
- this.fire( 'change', { value : value } );\r
+ !noChangeEvent && this.fire( 'change', { value : value } );\r
},\r
\r
/**\r