select-animation 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/select-animation.js +5 -2
package/package.json
CHANGED
package/select-animation.js
CHANGED
|
@@ -100,7 +100,8 @@
|
|
|
100
100
|
// Returns flat array of matched elements given one or more selectors
|
|
101
101
|
// Usage: select('.class', '#id')
|
|
102
102
|
// -----------------------------
|
|
103
|
-
// --- Enhanced DOM Selection Utility with Explicit Error Reporting
|
|
103
|
+
// --- Enhanced DOM Selection Utility with Explicit Error Reporting ---
|
|
104
|
+
// --- Enhanced DOM Selection Utility (Supports Multiple Arguments) ---
|
|
104
105
|
const selectDom = function (...selectors) {
|
|
105
106
|
const allElements = [];
|
|
106
107
|
|
|
@@ -148,7 +149,7 @@
|
|
|
148
149
|
// -----------------------------
|
|
149
150
|
const animate = function () {
|
|
150
151
|
const definitions = arguments;
|
|
151
|
-
const defsCopy = copyObj(definitions);
|
|
152
|
+
const defsCopy = copyObj(Array.prototype.slice.call(definitions));
|
|
152
153
|
|
|
153
154
|
return function () {
|
|
154
155
|
let tmp, i, propIndex, fromItem, toItem, valFrom, valTo, t;
|
|
@@ -847,6 +848,8 @@
|
|
|
847
848
|
return ret;
|
|
848
849
|
};
|
|
849
850
|
|
|
851
|
+
|
|
852
|
+
|
|
850
853
|
// Expose both for browser and Node/npm consumers
|
|
851
854
|
if (typeof module !== 'undefined' && module.exports) {
|
|
852
855
|
module.exports = {
|