Skip to main content

Bug Tracker

Side navigation

#7603 closed bug (worksforme)

Opened November 23, 2010 12:13AM UTC

Closed November 23, 2010 12:30AM UTC

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

}

Attachments (0)
Change History (2)

Changed November 23, 2010 12:23AM UTC by rwaldron comment:1

owner: → 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!

Changed November 23, 2010 12:30AM UTC by rwaldron comment:2

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/