[richfaces-issues] [JBoss JIRA] Commented: (RF-11198) rich:editor - reimplement JS to follow JQuery proxy pattern
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Wed Aug 10 19:31:24 EDT 2011
[ https://issues.jboss.org/browse/RF-11198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620142#comment-12620142 ]
Brian Leathem commented on RF-11198:
------------------------------------
The proxy pattern in the description link seems to be a bit of overkill. To move your event handlers to the prototype definition, all you really need is to use the jQuery proxy method:
{code:javascript}
this.removeAllButton.bind("click", $.proxy(this.removeAll, this));
{code}
where {{this.removeAll}} is a prototype method.
> rich:editor - reimplement JS to follow JQuery proxy pattern
> -----------------------------------------------------------
>
> Key: RF-11198
> URL: https://issues.jboss.org/browse/RF-11198
> Project: RichFaces
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.1.0.Milestone1
> Reporter: Lukáš Fryč
> Assignee: Lukáš Fryč
> Fix For: 4.1.0.Milestone2
>
>
> It will allow to move event handlers to prototype definition.
> http://docs.jquery.com/Types#Proxy_Pattern
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list