Permalink
Browse files

scrollToBottom(): added support for jQuery 1.6+

  • Loading branch information...
1 parent 055c2c2 commit 1d23e90608212b4e14967035cc5df902d8c3b39e @moretti moretti committed Dec 12, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 jquery.console.js
View
@@ -409,7 +409,12 @@
// Scroll to the bottom of the view
function scrollToBottom() {
- inner.attr({ scrollTop: inner.attr("scrollHeight") });;
+ if (jQuery.fn.jquery > "1.6") {
+ inner.prop({ scrollTop: inner.prop("scrollHeight") });
+ }
+ else {
+ inner.attr({ scrollTop: inner.attr("scrollHeight") });
+ }
};
function cancelExecution() {

0 comments on commit 1d23e90

Please sign in to comment.