Permalink
Browse files

Fix nodes bad order with some requests

  • Loading branch information...
pyrsmk committed Dec 7, 2011
1 parent e1596a2 commit 48d413f1e9cfe3754db032911dd531b137910c71
Showing with 7 additions and 7 deletions.
  1. +1 −1 README.markdown
  2. +1 −1 nut-0.1.18.min.js → nut-0.1.19.min.js
  3. +5 −5 src/nut.js
View
@@ -1,4 +1,4 @@
-Nut 0.1.17
+Nut 0.1.19
==========
Nut is a concise query selector engine that just allows you to do extremely simple queries.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
/*
nut, the concise CSS selector engine
- Version : 0.1.18
+ Version : 0.1.19
Author : Aurélien Delogu (dev@dreamysource.fr)
Homepage : https://github.com/pyrsmk/nut
License : MIT
@@ -200,9 +200,9 @@
}
// Evaluate current selector for each local context
future_local_contexts=[];
- m=local_contexts[length];
- while(m){
- elements=getNodesFromSelector(selector,local_contexts[--m]);
+ m=-1;
+ while(local_contexts[++m]){
+ elements=getNodesFromSelector(selector,local_contexts[m]);
n=-1;
o=elements[length];
while(++n<o){
@@ -220,4 +220,4 @@
return nodes;
};
-}()));
+}()));

0 comments on commit 48d413f

Please sign in to comment.