Skip to content

Commit

Permalink
Fix: Singular selectors (dt-api row() for example) did not reduce t…
Browse files Browse the repository at this point in the history
…heir result sets to a single item
  • Loading branch information
Allan Jardine committed Apr 16, 2015
1 parent 5d64977 commit edb30c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/api/api.selectors.js
Expand Up @@ -68,6 +68,7 @@ var _selector_first = function ( inst )
// Assign the first element to the first item in the instance
// and truncate the instance and context
inst[0] = inst[i];
inst[0].length = 1;
inst.length = 1;
inst.context = [ inst.context[i] ];

Expand Down

0 comments on commit edb30c1

Please sign in to comment.