mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 16:24:57 -05:00
Improve CSS and Support: comments. Close gh-1220.
1) corrected box-sizing rules order - the unprefixed value should always be the last one 2) removed last semi-colons in CSS rules 3) updated support comments code review changes + more consistent comment spacing
This commit is contained in:
committed by
Dave Methvin
parent
1b61026650
commit
dca7681284
@@ -409,7 +409,7 @@ jQuery.extend({
|
||||
if ( obj == null ) {
|
||||
return String( obj );
|
||||
}
|
||||
// Support: Safari <=5.1 (functionish RegExp)
|
||||
// Support: Safari <= 5.1 (functionish RegExp)
|
||||
return typeof obj === "object" || typeof obj === "function" ?
|
||||
class2type[ core_toString.call(obj) ] || "object" :
|
||||
typeof obj;
|
||||
@@ -424,9 +424,10 @@ jQuery.extend({
|
||||
return false;
|
||||
}
|
||||
|
||||
// Support: Firefox >16
|
||||
// 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 &&
|
||||
!core_hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
|
||||
|
||||
Reference in New Issue
Block a user