[Infusion-users] Turning off blurHandler for an inlineEdit

Antranig Basman Antranig.Basman at colorado.edu
Fri Mar 12 23:52:07 UTC 2010


Hi Matt - an empty blurHandlerBinder simply reverts to the component 
default. To explicitly defeat blur handling, set it to a null function 
e.g. blurHandlerBinder: function() {},

Hope this gets the behaviour you desire,
Cheers,
Antranig.

Matt Zumwalt wrote:
> I'm trying to figure out the easiest way to turn off the blurHandler on 
> my inlineEdits (Sometimes I want to use save/cancel buttons).  I thought 
> I could just set the blurHandlerBinder to null but that didn't work. 
>  What's the easiest way to do this?
> 
> BTW, are some of you at sxsw?
> 
>       var example3 = fluid.inlineEdit("#document_story_2", {
>           selectors : {
>             text : ".editableText",
>             editables : ".editable"
>           }, 
>           componentDecorators: {
>             type: "fluid.undoDecorator" 
>           },
>           listeners : {
>             onFinishEdit : instructiveFinishEditListener,
>             modelChanged : instructiveModelChangedListener
>           },
> *          blurHandlerBinder: null,*
>           defaultViewText: "click to edit"
>       });
> 
> 
> Matt Zumwalt
> MediaShelf, LLC
> http://www.yourmediashelf.com




More information about the Infusion-users mailing list