Skip to content

Commit

Permalink
Core: Remove special case try/catch in isPlainObject
Browse files Browse the repository at this point in the history
Fixes #14746
  • Loading branch information
rwaldron committed Feb 2, 2014
1 parent 01c360f commit 3dccf62
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/core.js
Expand Up @@ -225,16 +225,8 @@ jQuery.extend({
return false;
}

// Support: Firefox <20
// The try/catch suppresses exceptions thrown when attempting to access
// the "constructor" property of certain host objects, ie. |window.location|
// https://bugzilla.mozilla.org/show_bug.cgi?id=814622
try {
if ( obj.constructor &&
!hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
return false;
}
} catch ( e ) {
if ( obj.constructor &&
!hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
return false;
}

Expand Down

0 comments on commit 3dccf62

Please sign in to comment.