itself could be a complext JS object (read function) with additional handlers. When such handlers are invoked, the context of "this" switches to whoever invokes the handler. However, we might still want to invoke other methods on the main container (for example, grid). This is where we can use "that" leveraging closures.
Please correct if I am wrong.
Thx
0
Petyo
Telerik team
answered on 15 Aug 2014, 01:00 PM
Hi Ramesh,
you have understood this pattern usage correctly - the var that = this is used as a reference to the original context in closures (most often, event handlers).
Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!