From 5787d382aabeebf3bb4ec71afcde0edbf9de497e Mon Sep 17 00:00:00 2001 From: Christoph Pojer Date: Wed, 29 Sep 2010 22:02:06 +0200 Subject: [PATCH] * Slick update --- Source/Slick/Slick.Finder.js | 8 +------- Specs | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Source/Slick/Slick.Finder.js b/Source/Slick/Slick.Finder.js index ba6810339..3034d81e9 100644 --- a/Source/Slick/Slick.Finder.js +++ b/Source/Slick/Slick.Finder.js @@ -21,6 +21,7 @@ local.isXML = function(document){ return (!!document.xmlVersion) || (!!document.xml) || (Object.prototype.toString.call(document) === '[object XMLDocument]') || (document.nodeType === 9 && document.documentElement.nodeName !== 'HTML'); }; + local.setDocument = function(document){ // convert elements / window arguments to document. if document cannot be extrapolated, the function returns. @@ -182,13 +183,6 @@ local.search = function(context, expression, append, first){ var found = this.found = (first) ? null : (append || []); - // no need to pass a context if its the current document - - if (expression == null){ - expression = context; - context = document; // the current document, not local.document, cause it would be confusing - } - // context checks if (!context) return found; // No context diff --git a/Specs b/Specs index f09d0d074..8d313f947 160000 --- a/Specs +++ b/Specs @@ -1 +1 @@ -Subproject commit f09d0d074d199c180cc0deeab3f204118b2d2933 +Subproject commit 8d313f94701676d21d71a756f21945ca53cda9b7