Answered: Uncaught TypeError: object is not a function

Answered: Uncaught TypeError: object is not a function

i am getting thisUncaught TypeError: object is not a function while i was trying to run my application after i packaged it for desktop. Strange thing is that the same code is working fine for web version means without any kind of pakaging.
But i need this to work in desktop application. Please help.

the issue comes when i am using this :

var view = Ext.widget('useredit');
in my controller . here 'useredit' is my view and in this view initComponent is like this :