PDA

View Full Version : Is there a way to pragmatically know if a dev is using -all vs -debug vs ...



psmithiv
24 Jul 2013, 7:21 AM
Is there any way to pragmatically know if a developer is using -all vs -debug vs -debug-all vs the prod build in either ExtJS or ST2?

Thanks,
-Paul.

julio.batista
25 Jul 2013, 3:13 AM
I never did that, but something like the below code should work


if (document.head.innerHTML.indexOf('ext-all-debug.js') > -1)
alert('Using Ext-all-debug');

psmithiv
25 Jul 2013, 6:15 AM
Thanks for the reply. Not sure why I didn't think of that. I feel like I'm all ways looking for a "Sencha" way to do things instead of going back to basics. Thanks so much for pointing me in the right direction.