Bug Tracker

Opened 9 years ago

Closed 9 years ago

#7603 closed bug (worksforme)

got error while iterating the event object

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Description

[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLInputElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://dev.beta.crush.com/js/jquery.js :: anonymous :: line 32" data: no

$(".inbox-email-list").click(function(eventObject) {

var sdsd= ""; try {

jQuery.each(eventObject.target, function(i, val) {

sdsd = sdsd+i+":"+val+"\n";

}); }catch(err){

alert(err);

Handle errors here

}

Change History (2)

comment:1 Changed 9 years ago by Rick Waldron

Owner: set to anonymous
Status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!

Additionally, test against the jQuery 0 GIT version to ensure the issue still exists. Be Excellent to eachother!

comment:2 Changed 9 years ago by Rick Waldron

Resolution: worksforme
Status: pendingclosed

I decided to work through this one myself. There were a few errors in your code. Please take a look at the test case:

http://jsfiddle.net/rwaldron/xVcpP/1/

Note: See TracTickets for help on using tickets.