Event system docs sample code
Some the example code listed on the following page does not perform as expected: http://dojotoolkit.org/docs/dojo_event_system.html
I've modified the erroneous code below, surrounding the points of interest with '-->' and '<--'.
function aroundFunc(invocation){
var tmpArgs = [
-->[<--
invocation.args[0],
invocation.args[1]
-->]<--
];
invocation.args = tmpArgs;
return invocation.proceed();
}
// after-around advice
dojo.event.connect(
-->"before|after",<--
obj1, "twoArgFunc",
obj2, "oneArgFunc",
"aroundFunc");
Change History (5)
Component: |
General →
Documentation
|
severity: |
normal →
critical
|
Priority: |
normal →
highest
|
Milestone: |
→ 0.3.1
|
Owner: |
changed from anonymous to alex
|
Resolution: |
→ invalid
|
Status: |
new →
closed
|
this should be a really easy one to fix or mark invalid