aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-06-19 16:59:27 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-06-19 16:59:27 +0200
commit2360af22a86644d9ff3589fb7b901210229f0cf0 (patch)
tree1080762193999695256daefa5b862b195414f1b1 /ui/jquery.ui.menu.js
parentb1e4aa9a1f70a1b7203bc000703acd7e195ceb84 (diff)
downloadjquery-ui-2360af22a86644d9ff3589fb7b901210229f0cf0.tar.gz
jquery-ui-2360af22a86644d9ff3589fb7b901210229f0cf0.zip
Menu: make the hasScroll method private
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r--ui/jquery.ui.menu.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 0a8b64171..e7eab8966 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -118,7 +118,7 @@ $.widget("ui.menu", {
activate: function( event, item ) {
this.deactivate();
- if (this.hasScroll()) {
+ if (this._hasScroll()) {
var offset = item.offset().top - this.element.offset().top,
scroll = this.element.attr("scrollTop"),
elementHeight = this.element.height();
@@ -177,7 +177,7 @@ $.widget("ui.menu", {
// TODO merge with previousPage
nextPage: function(event) {
- if (this.hasScroll()) {
+ if (this._hasScroll()) {
// TODO merge with no-scroll-else
if (!this.active || this.last()) {
this.activate(event, this.element.children(":first"));
@@ -203,7 +203,7 @@ $.widget("ui.menu", {
// TODO merge with nextPage
previousPage: function(event) {
- if (this.hasScroll()) {
+ if (this._hasScroll()) {
// TODO merge with no-scroll-else
if (!this.active || this.first()) {
this.activate(event, this.element.children(":last"));
@@ -228,7 +228,7 @@ $.widget("ui.menu", {
}
},
- hasScroll: function() {
+ _hasScroll: function() {
return this.element.height() < this.element.attr("scrollHeight");
},