rishson/dojoEnterpriseApp — pull request #51 by st3redstripe (2012-08-13 09:27:39+00:00)
Title: Added lang.defer function and fixed orphan to override destroyDescendants

Fixes to orphan
* Some dijit widgets override destroyRecursive to provide their own logic and this would have not been called prior to this update.
* destroyRecursive calls destroyDescendants internally so it makes sense to override the destroyDescendants method for widgets that inherit from Rishon.base.
* This update is very similar to Phil Higgins memory leak solution

Defer function
* Executes a function after the current call-stack has cleared
* We're using it a couple of times within ri-app for resizing layouts so it makes sense to create a helper

Misc
* Tested with ri-app & Indium