Skip to content

Commit

Permalink
Minor bug in sort function, checking for 'undefined' instead of undef…
Browse files Browse the repository at this point in the history
…ined. Now you can pass sort creiteria as variable into the function
  • Loading branch information
karl westin committed Oct 21, 2011
1 parent 489c158 commit 4b8261d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
16 changes: 15 additions & 1 deletion list.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/list.js
Expand Up @@ -190,7 +190,7 @@ function List(id, options, values) {
sorting = '',
asc = false;

if (target === 'undefined') {
if (target === undefined) {
value = valueName;
} else {
value = ListJsHelpers.getAttribute(target, 'rel');
Expand Down
1 change: 0 additions & 1 deletion tests/index.html
Expand Up @@ -5,7 +5,6 @@
<link rel="stylesheet" href="qunit/qunit.css" media="screen">

<script src="../src/list.js"></script>

<script src="qunit/qunit.js"></script>
<script src="list.tests.js"></script>

Expand Down

0 comments on commit 4b8261d

Please sign in to comment.