Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#192 closed defect (invalid)

Event system docs sample code

Reported by: james.dojotoolkit@… Owned by: alex
Priority: blocker Milestone:
Component: Doc parser Version: 0.1
Keywords: Cc:
Blocked By: Blocking:

Description

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)

comment:1 Changed 14 years ago by anonymous

Component: GeneralDocumentation
severity: normalcritical

comment:2 Changed 14 years ago by anonymous

Priority: normalhighest

comment:3 Changed 13 years ago by dylan

Milestone: 0.3.1
Owner: changed from anonymous to alex

this should be a really easy one to fix or mark invalid

comment:4 Changed 13 years ago by alex

Resolution: invalid
Status: newclosed

it's invalid.

comment:5 Changed 12 years ago by (none)

Milestone: 0.3.1

Milestone 0.3.1 deleted

Note: See TracTickets for help on using tickets.