Bug Tracker

Modify

Ticket #7603 (closed bug: worksforme)

Opened 2 years ago

Last modified 2 years ago

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

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

comment:1 Changed 2 years ago by rwaldron

  • Owner set to anonymous
  • Status changed from new to pending

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 2 years ago by rwaldron

  • Status changed from pending to closed
  • Resolution set to worksforme

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/

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.