magento/magento2 — pull request #63 by drewhunter (2012-08-11 19:30:42+00:00)
Title: Passing config args node along to observer object

There is a reference to a config node 'args' in Mage_Core_Model_App dispatchEven which can be used when declaring observers in config.xml. Unless mistaken, it currently appears to be unused. In particular, the value does not get passed along with the observer object - which would appear a logical use of this node.

This is something I noticed a while back and has came up again recently in a question on stackoverflow: http://stackoverflow.com/questions/11898878/using-args-in-magento-observer-declaration

Please see attached commit, which passes the value of the args node along with observer object.

Alternatively, if the args node is not to be used then the reference to it in Mage_Core_Model_App dispatchEvent could be removed to prevent any future confusion.