Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ordering of js_files not preserved #17

Closed
shiftdirector opened this Issue · 1 comment

2 participants

@shiftdirector

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
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.