Bug Tracker

Opened 6 years ago

Closed 6 years ago

#13792 closed bug (notabug)

jQuery Browser example throws error in jquery 1.9.1

Reported by: rich.kindle@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

The example below, provided on the jQuery browser documentation page (http://api.jquery.com/jQuery.browser/) throws an error in release 1.9.1.

jQuery.each(jQuery.browser, function(i, val) {
  $("<div>" + i + " : <span>" + val + "</span>")
  .appendTo( document.body );
});

The error: "Uncaught TypeError: Cannot read property 'length' of undefined"

Change History (1)

comment:1 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.