Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 245e5ae

Browse files
author
Gabriel Schulhof
committed
[slider] Restoring slider according to the FIXME now that we have a widget factory that includes a fix for UI issue #8724
1 parent f7b79e0 commit 245e5ae

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

js/widgets/forms/slider.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ define( [ "jquery", "../../jquery.mobile.core", "../../jquery.mobile.widget", ".
1010
(function( $, undefined ) {
1111

1212
$.widget( "mobile.slider", $.mobile.widget, {
13+
widgetEventPrefix: "slide",
14+
1315
options: {
1416
theme: null,
1517
trackTheme: null,
@@ -477,11 +479,6 @@ $.widget( "mobile.slider", $.mobile.widget, {
477479

478480
$.widget( "mobile.slider", $.mobile.slider, $.mobile.behaviors.formReset );
479481

480-
// FIXME: Move the declaration of widgetEventPrefix back to the top of the
481-
// initial declaration of the slider widget once we start using a version of
482-
// the widget factory that includes a fix for http://bugs.jqueryui.com/ticket/8724
483-
$.widget( "mobile.slider", $.mobile.slider, { widgetEventPrefix: "slide" } );
484-
485482
//auto self-init widgets
486483
$( document ).bind( "pagecreate create", function( e ) {
487484
$.mobile.slider.prototype.enhanceWithin( e.target, true );

0 commit comments

Comments
 (0)