@@ -118,7 +118,7 @@ $.widget("ui.menu", {
118
118
119
119
activate : function ( event , item ) {
120
120
this . deactivate ( ) ;
121
- if ( this . hasScroll ( ) ) {
121
+ if ( this . _hasScroll ( ) ) {
122
122
var offset = item . offset ( ) . top - this . element . offset ( ) . top ,
123
123
scroll = this . element . attr ( "scrollTop" ) ,
124
124
elementHeight = this . element . height ( ) ;
@@ -177,7 +177,7 @@ $.widget("ui.menu", {
177
177
178
178
// TODO merge with previousPage
179
179
nextPage : function ( event ) {
180
- if ( this . hasScroll ( ) ) {
180
+ if ( this . _hasScroll ( ) ) {
181
181
// TODO merge with no-scroll-else
182
182
if ( ! this . active || this . last ( ) ) {
183
183
this . activate ( event , this . element . children ( ":first" ) ) ;
@@ -203,7 +203,7 @@ $.widget("ui.menu", {
203
203
204
204
// TODO merge with nextPage
205
205
previousPage : function ( event ) {
206
- if ( this . hasScroll ( ) ) {
206
+ if ( this . _hasScroll ( ) ) {
207
207
// TODO merge with no-scroll-else
208
208
if ( ! this . active || this . first ( ) ) {
209
209
this . activate ( event , this . element . children ( ":last" ) ) ;
@@ -228,7 +228,7 @@ $.widget("ui.menu", {
228
228
}
229
229
} ,
230
230
231
- hasScroll : function ( ) {
231
+ _hasScroll : function ( ) {
232
232
return this . element . height ( ) < this . element . attr ( "scrollHeight" ) ;
233
233
} ,
234
234
0 commit comments