Skip to content

Commit

Permalink
Fix rtl flipping in jquery.ui.suggester.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aude committed Jun 25, 2014
1 parent 0bc1c00 commit 471b0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jquery.ui/jquery.ui.suggester.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@
*/
function flipPosition( position ) {
function flipOrientation( orientation ) {
if( /right/i.match( orientation ) ) {
if( /right/i.test( orientation ) ) {
return orientation.replace( /right/i, 'left' );
} else {
return orientation.replace( /left/i, 'right' );
Expand Down

0 comments on commit 471b0c9

Please sign in to comment.