Permalink
Browse files

Add offset to position check as well

  • Loading branch information...
1 parent 96e3dc8 commit de360706b3f1b760cb0cbfbeea344ff78e093c0a @tms tms committed Dec 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 SEChatModifications.user.js
@@ -1677,7 +1677,7 @@ function bindas($) {
offset = handlers.delegateCount;
}
- if (handlers && handlers.length > nth + 1) {
+ if (handlers && handlers.length > offset + nth + 1) {
handlers.splice(offset + nth, 0, handlers.splice(handlers.length - 1, 1)[0]);
}
}

0 comments on commit de36070

Please sign in to comment.