jquery/jquery-mobile — Issue #2654: "degradeInputs" plugin doesn't trigger on "create" events
Author: redaemn
Created: 2011-10-10 08:56:23+00:00
State: open

Here's what I did: inside a page previously created I dinamically inserted the HTML needed to render a slider, then I triggered the "create" event on the "content" div to execute the plugins (as suggested in the documentation). The slider got created but the input[type="range"] didn't degraded to type="number".

I noticed that the "degradeInputs" plugin is bound to the "enhance" event, I think this was renamed to "create" some commit ago. Isn't this a bug?

I tried renaming "enhance" to "create" but it seems that the "degradeInputs" plugin wants to be executed only on data-role="page" elements, some more refactor is needed.