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

Commit

Permalink
[slider] Restoring slider according to the FIXME now that we have a w…
Browse files Browse the repository at this point in the history
…idget factory that includes a fix for UI issue #8724
  • Loading branch information
Gabriel Schulhof committed Nov 13, 2012
1 parent f7b79e0 commit 245e5ae
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions js/widgets/forms/slider.js
Expand Up @@ -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,
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 245e5ae

Please sign in to comment.