docs: fix javadoc filtering script to not choke on R.styleable class but continue handling provisional api levels

Change-Id: Ia21ea5d4f379fd85d975d1f3fe387c311c7c15aa
This commit is contained in:
Scott Main 2011-09-21 18:38:44 -07:00
parent f83b607339
commit 219a267408
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ function buildApiLevelSelector() {
minLevel = parseInt($("body").attr("class")); minLevel = parseInt($("body").attr("class"));
// Handle provisional api levels; the provisional level will always be the highest possible level // Handle provisional api levels; the provisional level will always be the highest possible level
if (isNaN(minLevel)) { // Provisional api levels will also have a length; other stuff that's just missing a level won't,
// so leave those kinds of entities at the default level of 1 (for example, the R.styleable class)
if (isNaN(minLevel) && minLevel.length) {
minLevel = maxLevel; minLevel = maxLevel;
} }
var select = $("#apiLevelSelector").html("").change(changeApiLevel); var select = $("#apiLevelSelector").html("").change(changeApiLevel);