-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove cypress and add createEl plus update googlemaps
- Loading branch information
Matt
authored and
Matt
committed
Nov 16, 2020
1 parent
ed81fbe
commit 2ee01b6
Showing
12 changed files
with
47 additions
and
124 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Creates an element with a given object of attributes | ||
* @memberof Vanilla | ||
* @version 1.0.0 | ||
* @param {string} name of the element such as 'div' | ||
* @param {object} key/value object of attribute names and values | ||
* @returns {node} returns node | ||
*/ | ||
|
||
export default function (tagName, attributes = {}) { | ||
|
||
const elem = document.createElement(tagName); | ||
|
||
for (const key in attributes) { | ||
elem[key] = attributes[key]; | ||
} | ||
|
||
return elem; | ||
}; |
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