From 0b6fb6026f54139a0d349bbe3970f65e8b21f803 Mon Sep 17 00:00:00 2001 From: "Fabio M. Costa" Date: Tue, 8 Jun 2010 23:38:13 -0300 Subject: [PATCH] Fixes #894, getPrevious now get the first previous node that matches the passed expression. --- Source/Element/Element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Element/Element.js b/Source/Element/Element.js index d6c855d62..902c4f9e2 100644 --- a/Source/Element/Element.js +++ b/Source/Element/Element.js @@ -466,7 +466,7 @@ Element.implement({ }, getPrevious: function(match){ - return document.id(Slick.find(this, '!+ ' + (match || ''))); + return document.id(Slick.find(this, '!~ ' + (match || ''))); }, getAllPrevious: function(match){