May 02, 2012, 8:07 AM
[CLOSED] question about the #{} notation in Handler
Hi,
I have a MVC3 project using Razor ViewEngine. I am under the impression that #{Draw1} the a Handler like this
I have a MVC3 project using Razor ViewEngine. I am under the impression that #{Draw1} the a Handler like this
listeners.Click.Handler = "#{Draw1}.surface.getGroup('circles')
should turn into Javascript like thisApp.Draw1.surface.getGroup('circles')
However, it is actually turn into the following js Ext.get("Draw1").surface.getGroup('circles')
and surface is an undefined property. Thus, js throws an exception " Cannot call method 'getGroup' of undefined"
Last edited by Daniil; May 04, 2012 at 9:49 PM.
Reason: [CLOSED]