W3cubDocs

/jQuery Mobile

jqmEnhanceable()

.jqmEnhanceable()Returns: Object

Description: Filter method to respect data-enhance=false parent elements during manual enhancement.

For users that wish to respect data-enhance=false parent elements during manual enhancement or custom plugin authoring jQuery Mobile provides the $.fn.jqmEnhanceable filter method.

Settings:
If, and only if, $.mobile.ignoreContentEnabled is set to true, this method will traverse the parent nodes for each DOM element in the jQuery object and where it finds a data-enhance=false parent the child will be removed from the set.
Warning:
The operation of traversing all parent elements can be expensive for even small jQuery object sets.

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquerymobile.com/jqmEnhanceable