Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
Fix nodes bad order with some requests
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrsmk committed Dec 7, 2011
1 parent e1596a2 commit 48d413f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.markdown
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion nut-0.1.18.min.js → nut-0.1.19.min.js

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

10 changes: 5 additions & 5 deletions src/nut.js
@@ -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
Expand Down Expand Up @@ -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){
Expand All @@ -220,4 +220,4 @@
return nodes;
};

}()));
}()));

0 comments on commit 48d413f

Please sign in to comment.