-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from DP6/correcoes-ga4-prettier
Correções globais no processo de build e no código final
- Loading branch information
Showing
21 changed files
with
1,605 additions
and
1,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ | |
], | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
function closest(elm, seletor) { | ||
if ('closest' in elm) return elm.closest(seletor); | ||
if (typeof jQuery === 'function') return jQuery(elm).closest(seletor)[0]; | ||
if ('closest' in elm) return elm.closest(seletor); | ||
if (typeof jQuery === 'function') return jQuery(elm).closest(seletor)[0]; | ||
|
||
var parent = elm.parentNode; | ||
var parent = elm.parentNode; | ||
|
||
while (parent != document) { | ||
if (matches(parent, seletor)) { | ||
return parent; | ||
} | ||
parent = parent.parentNode; | ||
while (parent != document) { | ||
if (matches(parent, seletor)) { | ||
return parent; | ||
} | ||
return undefined; | ||
parent = parent.parentNode; | ||
} | ||
return undefined; | ||
} | ||
|
||
module.exports = closest; |
Oops, something went wrong.