#12658 closed bug (duplicate)
Error using delegated events with a selector with class .watch on Firefox
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Delegating events with .on and specifying a classname of ".watch" causes an error on Firefox (15.0.1, Mac). Appears to do with a there being a function named watch in Gecko (https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/watch)?
See http://jsfiddle.net/wmNAR/1/ for a test.
$('div').on('click', 'p.watch', function(e) {console.log('this creates an error.')
Causes an error:
"TypeError: pattern.test is not a function"
On this line (4260):
(typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) | "" ); |
Note: See
TracTickets for help on using
tickets.
Duplicate of #12606.