Comparing version 0.1.17 to 0.1.18
11
nut.js
/* | ||
nut, the concise CSS selector engine | ||
Version : 0.1.17 | ||
Version : 0.1.18 | ||
Author : Aurélien Delogu (dev@dreamysource.fr) | ||
@@ -19,3 +19,4 @@ Homepage : https://github.com/pyrsmk/nut | ||
var firstChild='firstChild', | ||
var doc=document, | ||
firstChild='firstChild', | ||
nextSibling='nextSibling', | ||
@@ -61,3 +62,3 @@ getElementsByClassName='getElementsByClassName', | ||
getNodesFromIdSelector=function(selector,context){ | ||
var node=document.getElementById(selector); | ||
var node=doc.getElementById(selector); | ||
if(!node){ | ||
@@ -151,5 +152,5 @@ return []; | ||
if(!contexts){ | ||
contexts=[document]; | ||
contexts=[doc]; | ||
} | ||
else if(contexts[length]===undefined){ | ||
else if(!contexts.pop){ | ||
contexts=[contexts]; | ||
@@ -156,0 +157,0 @@ } |
{ | ||
"name" : "nut", | ||
"description" : "The concise CSS selector engine", | ||
"version" : "0.1.17", | ||
"version" : "0.1.18", | ||
"author" : "Aurélien Delogu <pyrsmk@dreamysource.fr> (http://dreamysource.fr)", | ||
@@ -6,0 +6,0 @@ "repository" : { |
236
7858