Skip to content

Commit

Permalink
Fixes #894, getPrevious now get the first previous node that matches …
Browse files Browse the repository at this point in the history
…the passed expression.
  • Loading branch information
fabiomcosta committed Jun 9, 2010
1 parent 2785a57 commit 0b6fb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Element/Element.js
Expand Up @@ -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){
Expand Down

0 comments on commit 0b6fb60

Please sign in to comment.