xtiger
xtiger

Reputation: 1446

Dynamic loading in Extjs

I have a question about Extjs

I have read the official document on Sencha doc but I have some confusions about the dynamic loading.

What is the difference between new X() and Ext.create('X')? Which should be used and when?

Any answer are very appreciated.

Upvotes: 0

Views: 496

Answers (1)

jansepke
jansepke

Reputation: 1979

never ever use new in ExtJS. if you use dynamic loading with Ext.create('X') ExtJS will check if the class X is already loaded and will load it before internally create the class with new.

Upvotes: 1

Related Questions