Skip to content

Commit f160d16

Browse files
author
Gabriel Schulhof
committed
Helpers: Remove getInheritedTheme()
1 parent 1462537 commit f160d16

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

js/helpers.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -153,31 +153,6 @@ $.extend( $.mobile, {
153153
$.mobile.activeClickedLink = null;
154154
},
155155

156-
// DEPRECATED in 1.4
157-
// Find the closest parent with a theme class on it. Note that
158-
// we are not using $.fn.closest() on purpose here because this
159-
// method gets called quite a bit and we need it to be as fast
160-
// as possible.
161-
getInheritedTheme: function( el, defaultTheme ) {
162-
var e = el[ 0 ],
163-
ltr = "",
164-
re = /ui-(bar|body|overlay)-([a-z])\b/,
165-
c, m;
166-
while ( e ) {
167-
c = e.className || "";
168-
if ( c && ( m = re.exec( c ) ) && ( ltr = m[ 2 ] ) ) {
169-
// We found a parent with a theme class
170-
// on it so bail from this loop.
171-
break;
172-
}
173-
174-
e = e.parentNode;
175-
}
176-
// Return the theme letter we found, if none, return the
177-
// specified default.
178-
return ltr || defaultTheme || "a";
179-
},
180-
181156
enhanceable: function( elements ) {
182157
return this.haveParents( elements, "enhance" );
183158
},

0 commit comments

Comments
 (0)