Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

support slidestart and slidestop events

  • Loading branch information...
commit 98dfce233874a8c7cde281cab4e5fc0f0c752eee 1 parent 7268df3
@johnbender johnbender authored
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;
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.