Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[slider] Restoring slider according to the FIXME now that we have a w…

…idget factory that includes a fix for UI issue #8724
  • Loading branch information...
commit 245e5aee128269873338c34651f7056312e44696 1 parent f7b79e0
@gabrielschulhof gabrielschulhof authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 js/widgets/forms/slider.js
View
7 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,
@@ -477,11 +479,6 @@ $.widget( "mobile.slider", $.mobile.widget, {
$.widget( "mobile.slider", $.mobile.slider, $.mobile.behaviors.formReset );
-// FIXME: Move the declaration of widgetEventPrefix back to the top of the
-// initial declaration of the slider widget once we start using a version of
-// the widget factory that includes a fix for http://bugs.jqueryui.com/ticket/8724
-$.widget( "mobile.slider", $.mobile.slider, { widgetEventPrefix: "slide" } );
-
//auto self-init widgets
$( document ).bind( "pagecreate create", function( e ) {
$.mobile.slider.prototype.enhanceWithin( e.target, true );
Please sign in to comment.
Something went wrong with that request. Please try again.