hiroprotagonist / jquery.mobile.actionsheet

An actionsheet for jquerymobile
103 stars 34 forks source link

bug when moving sheet into content #13

Closed blq closed 12 years ago

blq commented 12 years ago

I think there's a mistake in the _init code that moves external actionsheets into the current page's content.

var currentContent = this.content.parents(':jqmData(role="page")').children(':jqmData(role="content")');

It should rather be:

var currentContent = this.element.parents(':jqmData(role="page")').children(':jqmData(role="content")');

/ Fredrik

hiroprotagonist commented 12 years ago

Yep! Thats right. Thank you!