[
https://issues.jboss.org/browse/RF-11198?page=com.atlassian.jira.plugin.s...
]
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