Bug Tracker

Modify

Ticket #3718 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

$.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
Blocking: Blocked by:

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.

Change History

comment:1 Changed 4 years ago by flesler

  • Cc carl-johan.blomqvist added
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfilled to core

That's the expected behavior. Check  the docs.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.