Changeset 885
- Timestamp:
- 09/26/07 23:44:11 (6 years ago)
- Location:
- FCKeditor/trunk/editor/_source
- Files:
-
- 2 edited
-
commandclasses/fcktextcolorcommand.js (modified) (1 diff)
-
internals/fcktools.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/commandclasses/fcktextcolorcommand.js
r828 r885 100 100 this.className = 'ColorDeselected' ; 101 101 command._Panel.Hide() ; 102 FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, command.SetColor) ;102 FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, FCKTools.Hitch(command, 'SetColor') ) ; 103 103 } 104 104 -
FCKeditor/trunk/editor/_source/internals/fcktools.js
r774 r885 574 574 return tempSpan.style.cssText ; 575 575 } 576 577 /** 578 * Utility function to wrap a call to an object's method, 579 * so it can be passed for example to an event handler, 580 * and then it will be executed with 'this' being the object. 581 */ 582 FCKTools.Hitch = function( obj, methodName ) 583 { 584 return function() { obj[methodName].apply(obj, arguments); } ; 585 }
Note: See TracChangeset
for help on using the changeset viewer.
