mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-03 04:14:42 +00:00
Tweaked the jqdata selector regexp so that it wasn't so greedy. This will allow for multiple jqdata() and other pseudo selectors that use parens withinthe same selector string.
This commit is contained in:
parent
4fca8e6d21
commit
882c27c03f
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@
|
|||
var oldFind = jQuery.find;
|
||||
|
||||
jQuery.find = function( selector, context, ret ) {
|
||||
selector = selector.replace(/:jqdata\((.*)\)/g, "[data-" + (jQuery.mobile.ns || "") + "$1]");
|
||||
selector = selector.replace(/:jqdata\(([^)]*)\)/g, "[data-" + (jQuery.mobile.ns || "") + "$1]");
|
||||
|
||||
return oldFind.call( this, selector, context, ret );
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue