-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor project to use Rollup for packaging
- Loading branch information
1 parent
244100c
commit 8af0e37
Showing
17 changed files
with
790 additions
and
305 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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
dist/* | ||
scripts/* | ||
spec/* |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ language: node_js | |
node_js: | ||
- 8 | ||
- 9 | ||
- 10 | ||
cache: | ||
directories: | ||
- node_modules | ||
|
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
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,39 @@ | ||
/*! | ||
* CashCash v1.2.0 | ||
* | ||
* A very small DOM library inspired by jQuery. | ||
* | ||
* Source code available at: https://github.com/jgarber623/CashCash | ||
* | ||
* (c) 2016-present Jason Garber (https://sixtwothree.org) | ||
* | ||
* CashCash may be freely distributed under the MIT license. | ||
*/ | ||
|
||
var Cash = function(selector, context) { | ||
selector = typeof selector === "string" ? selector.trim() : ""; | ||
if (selector.length) { | ||
selector = typeof context === "string" && context.trim().length ? context.trim() + " " + selector : selector; | ||
context = context instanceof HTMLElement ? context : document; | ||
var elements = context.querySelectorAll(selector), count = elements.length; | ||
this.length = count; | ||
this.context = context; | ||
this.selector = selector; | ||
while (count--) { | ||
this[count] = elements[count]; | ||
} | ||
} | ||
}; | ||
|
||
var CashCash = function(selector, context) { | ||
return new Cash(selector, context); | ||
}; | ||
|
||
Cash.prototype = CashCash.prototype = { | ||
length: 0, | ||
toArray: function() { | ||
return Array.prototype.slice.call(this); | ||
} | ||
}; | ||
|
||
export default CashCash; |
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
Oops, something went wrong.