aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2014-02-02 15:36:14 -0500
committerRick Waldron <waldron.rick@gmail.com>2014-02-02 15:40:39 -0500
commit3dccf62c81b5fbecc3a0431a8927ed1d30806fc6 (patch)
tree0e822c3822ce5b28bf51e0bbe12addfada1a951c /src
parent01c360f96390ff16edfe65ef3b34e167087ef645 (diff)
downloadjquery-3dccf62c81b5fbecc3a0431a8927ed1d30806fc6.tar.gz
jquery-3dccf62c81b5fbecc3a0431a8927ed1d30806fc6.zip
Core: Remove special case try/catch in isPlainObject
Fixes #14746
Diffstat (limited to 'src')
-rw-r--r--src/core.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/core.js b/src/core.js
index 6afb97685..67b6e7199 100644
--- a/src/core.js
+++ b/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;
}