Skip to content
Permalink
Browse files

Core: Remove special case try/catch in isPlainObject

Fixes #14746
  • Loading branch information...
rwaldron committed Feb 2, 2014
1 parent 01c360f commit 3dccf62c81b5fbecc3a0431a8927ed1d30806fc6
Showing with 2 additions and 10 deletions.
  1. +2 −10 src/core.js
@@ -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;
}

0 comments on commit 3dccf62

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.