Skip to content
Browse files

support slidestart and slidestop events

  • Loading branch information...
1 parent 7268df3 commit 98dfce233874a8c7cde281cab4e5fc0f0c752eee @johnbender johnbender committed Jul 27, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 js/widgets/forms/slider.js
View
4 js/widgets/forms/slider.js
@@ -10,6 +10,8 @@ define( [ "jquery", "../../jquery.mobile.core", "../../jquery.mobile.widget", ".
(function( $, undefined ) {
$.widget( "mobile.slider", $.mobile.widget, {
+ widgetEventPrefix: "slide",
+
options: {
theme: null,
trackTheme: null,
@@ -177,6 +179,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
}
self.refresh( event );
+ self._trigger( "start" );
return false;
})
.bind( "vclick", false );
@@ -212,6 +215,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
self.mouseMoved = false;
+ self._trigger( "stop" );
return false;
}
});

0 comments on commit 98dfce2

Please sign in to comment.
Something went wrong with that request. Please try again.