Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Commit

Permalink
fix scrollToBottom() version check for jQuery > 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
agrif committed Jun 13, 2013
1 parent dc4f0a3 commit edc15e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jquery.console.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,12 @@

// Scroll to the bottom of the view
function scrollToBottom() {
if (jQuery.fn.jquery > "1.6") {
var version = jQuery.fn.jquery.split('.');
var major = parseInt(version[0]);
var minor = parseInt(version[1]);

// check if we're using jquery > 1.6
if ((major == 1 && minor > 6) || major > 1) {
inner.prop({ scrollTop: inner.prop("scrollHeight") });
}
else {
Expand Down

0 comments on commit edc15e4

Please sign in to comment.