Skip to content


Removes unused hasOwn var declaration. Fixes #9510 #404

wants to merge 1 commit into from

3 participants

jQuery Foundation member

No description provided.

jQuery Foundation member

This file, events.js has a whole bunch of other stylistic issues, including but not limited to, multiple vat declarations per function, var declarations in loops, unused variables, and whitespacing. I assume it hasn't really been touched in a bit?

jQuery Foundation member

yeah bro.. It's on the rewrite list for 1.7 - Dave Methvin has some great plans for cleaning this up

jQuery Foundation member

Cool. Just curious, is that on the bug tracker, or listed somewhere? I was going to start doing that cleanup myself, and I would rather work on something that one of the core members isn't. Thanks again!

jQuery Foundation member

Dave Methvin is doing the major re-write tasks - the man has a plan! :D

jQuery Foundation member

Landed in commit c3c001c.

@timmywil timmywil closed this
@SaraJo SaraJo referenced this pull request

Patch for ticket #9830 #567

@mescoda mescoda pushed a commit to mescoda/jquery that referenced this pull request
@rwaldron rwaldron Landing pull request 404. Removes unused hasOwn var declaration. Fixe…
…s #9510.

More Details:
 - jquery#404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/event.js
3 src/event.js
@@ -1,7 +1,6 @@
(function( jQuery ) {
-var hasOwn = Object.prototype.hasOwnProperty,
- rnamespaces = /\.(.*)$/,
+var rnamespaces = /\.(.*)$/,
rformElems = /^(?:textarea|input|select)$/i,
rperiod = /\./g,
rspaces = / /g,
Something went wrong with that request. Please try again.