Skip to main content

Bug Tracker

Side navigation

#3718 closed bug (invalid)

Opened December 16, 2008 01:07PM UTC

Closed December 16, 2008 02:30PM UTC

$.map, without any selected values, $.map won't work

Reported by: carl-johan.blomqvist Owned by: flesler
Priority: minor Milestone: 1.3
Component: core Version: 1.2.6
Keywords: map Cc: carl-johan.blomqvist
Blocked by: Blocking:
Description

for example:

$("html").map(function() {

if( false ) {

return $("div");

} else {

return $("p");

}

}

will return all p's, but:

$("div.doesnotexist").map(function() {

if( false ) {

return $("div");

} else {

return $("p");

}

}

won't.

Attachments (0)
Change History (1)

Changed December 16, 2008 02:30PM UTC by flesler comment:1

cc: → carl-johan.blomqvist
component: unfilledcore
resolution: → invalid
status: newclosed

That's the expected behavior. Check the docs.