Skip to content

Commit

Permalink
Long lines are infinitely better than arbitrary line breaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 30, 2014
1 parent c6e7502 commit 0ea39ab
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions es5-sham.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,10 @@ function doesGetOwnPropertyDescriptorWork(object) {
//check whether getOwnPropertyDescriptor works if it's given. Otherwise,
//shim partially.
if (Object.defineProperty) {
var getOwnPropertyDescriptorWorksOnObject =
doesGetOwnPropertyDescriptorWork({});
var getOwnPropertyDescriptorWorksOnObject = doesGetOwnPropertyDescriptorWork({});
var getOwnPropertyDescriptorWorksOnDom = typeof document === "undefined" ||
doesGetOwnPropertyDescriptorWork(document.createElement("div"));
if (!getOwnPropertyDescriptorWorksOnDom ||
!getOwnPropertyDescriptorWorksOnObject
) {
if (!getOwnPropertyDescriptorWorksOnDom || !getOwnPropertyDescriptorWorksOnObject) {
var getOwnPropertyDescriptorFallback = Object.getOwnPropertyDescriptor;
}
}
Expand Down

0 comments on commit 0ea39ab

Please sign in to comment.