Skip to content
This repository
Browse code

support slidestart and slidestop events

  • Loading branch information...
commit 98dfce233874a8c7cde281cab4e5fc0f0c752eee 1 parent 7268df3
John Bender authored July 27, 2012

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  js/widgets/forms/slider.js
4  js/widgets/forms/slider.js
@@ -10,6 +10,8 @@ define( [ "jquery", "../../jquery.mobile.core", "../../jquery.mobile.widget", ".
10 10
 (function( $, undefined ) {
11 11
 
12 12
 $.widget( "mobile.slider", $.mobile.widget, {
  13
+	widgetEventPrefix: "slide",
  14
+
13 15
 	options: {
14 16
 		theme: null,
15 17
 		trackTheme: null,
@@ -177,6 +179,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
177 179
 			}
178 180
 
179 181
 			self.refresh( event );
  182
+			self._trigger( "start" );
180 183
 			return false;
181 184
 		})
182 185
 		.bind( "vclick", false );
@@ -212,6 +215,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
212 215
 
213 216
 					self.mouseMoved = false;
214 217
 
  218
+					self._trigger( "stop" );
215 219
 					return false;
216 220
 				}
217 221
 			});

0 notes on commit 98dfce2

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