PDA

View Full Version : what 's the function of classes.js



jomlim
1 Sep 2011, 7:01 AM
I saw every example has the file classes.js.
how it is work in programs?

skirtle
1 Sep 2011, 5:37 PM
Not all of the examples have a classes.js.

classes.js is a build artefact generated by the Sencha SDK build tools. It is a combination all the JS files into a single, minified file.

Have a read of this:

http://docs.sencha.com/ext-js/4-0/#!/guide/getting_started

It may be a little out of date but you'll get the gist.

jomlim
1 Sep 2011, 8:44 PM
that is very useful to me, thanks!

oturkan
29 Feb 2012, 5:53 AM
Hi
I'm checking desktop example. There is classses.js It's minified. How can decompile this js. thanks

skirtle
29 Feb 2012, 6:02 AM
You don't need to decompile it. The full source and build files used to build that file are included in the ExtJS distribution.

oturkan
29 Feb 2012, 6:32 AM
I see thank you soo much

oturkan
2 Mar 2012, 3:26 PM
one more question. I can change something on desktop example for ext 3. For example add shortcut to the desktop, remove start button, add new module. But for ext 4, when I change something on classes.js , I'm getting error.
I do this (just classes.js has Ext.define(Ext.util.Observable, ....) ) line. Removed modules

<script type="text/javascript" src="js/ext/ext-core.js"></script>
<script type="text/javascript" src="js/ext/classes.js"></script>

<script type="text/javascript" src="js/ext/Module.js"></script>
<script type="text/javascript" src="js/ext/ShortcutModel.js"></script>
<script type="text/javascript" src="js/ext/Desktop.js"></script>
<script type="text/javascript" src="js/ext/App.js"></script>
<script type="text/javascript" src="js/ext/FitAllLayout.js"></script>
<script type="text/javascript" src="js/ext/StartMenu.js"></script>
<script type="text/javascript" src="js/ext/TaskBar.js"></script>

<script type="text/javascript" src="js/GridWindow.js"></script>
<script type="text/javascript" src="js/App.js"></script>

thanks....