noirbizarre / django.js

Javascript tools for Django
http://djangojs.readthedocs.org/en/latest/
GNU Lesser General Public License v3.0
181 stars 80 forks source link

Ordering of js_files not preserved #17

Closed shiftdirector closed 11 years ago

shiftdirector commented 11 years ago

When passing an array of files to the js_file parameter of views JasminView or QUnitView, the ordering is changed by StorageGlobber.glob(). Example below.

ps. Django.js is awesome, big thank you.

In [2]: from djangojs.utils import StorageGlobber In [3]: js_files=[ ...: 'js/libs/underscore/underscore-min.js', ...: 'js/libs/backbone/backbone-min.js', ...: 'js/backbone.models.js', ...: 'js/tests/*.tests.js', ...: ]

In [4]: StorageGlobber.glob(js_files) Out[4]: [u'js/backbone.models.js', u'js/libs/backbone/backbone-min.js', u'js/libs/underscore/underscore-min.js', u'js/tests/something.tests.js']

noirbizarre commented 11 years ago

Thanks for the reports (and for the compliment).

If you don't mind, I have some other features and fixes to integrate before performing a release but I release it soon.