Dojo code in Anonymous Checkout

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dojo code in Anonymous Checkout

Tushar Abhyankar
Hi All,

         I was looking at Anonymous Checkout and in file
"quickAnonOptionSettings.ftl".  I commented out this line of code

 dojo.event.connect ("around", "processOrder", "aroundOptSubmitOrder");,
there were no visible repercussions of this.

Can anyone tell me where effects would be? I am trying to reverse engineer
the code, it would be great if anyone has any idea.

 

Regards,

Tushar Abhyankar

Amicon Technologies Pvt.Ltd

Mumbai, India.  

Reply | Threaded
Open this post in threaded view
|

Re: Dojo code in Anonymous Checkout

Ján Valkovič
Hi,
look in file (OFBIZ_ROOT)\framework\images\webapp\images\dojo\src\event\common.js (line 184)

dojo.event.connect:
        // summary:
        //        dojo.event.connect is the glue that holds most Dojo-based
        //        applications together. Most combinations of arguments are
        //        supported, with the connect() method attempting to disambiguate
        //        the implied types of positional parameters. (.....)
(.....)
        // adviceType:
        //        Optional. String. One of "before", "after", "around",
        //        "before-around", or "after-around". FIXME
        // srcObj:
        //        the scope in which to locate/execute the named srcFunc. Along
        //        with srcFunc, this creates a way to dereference the function to
        //        call. So if the function in question is "foo.bar", the
        //        srcObj/srcFunc pair would be foo and "bar", where "bar" is a
        //        string and foo is an object reference.
        // srcFunc:
        //        the name of the function to connect to. When it is executed,
        //        the listener being registered with this call will be called.
        //        The adviceType defines the call order between the source and
        //        the target functions.
(.....)

This may help you, i hope
ya




Tushar Abhyankar  wrote / napísal(a):
Hi All,

         I was looking at Anonymous Checkout and in file
"quickAnonOptionSettings.ftl".  I commented out this line of code

 dojo.event.connect ("around", "processOrder", "aroundOptSubmitOrder");,
there were no visible repercussions of this. 

Can anyone tell me where effects would be? I am trying to reverse engineer
the code, it would be great if anyone has any idea.

 

Regards,

Tushar Abhyankar

Amicon Technologies Pvt.Ltd

Mumbai, India.