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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "select-animation",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "description": "High-performance JavaScript animation engine for organic & fluid motion",
5
5
  "main": "select-animation.js",
6
6
  "scripts": {
@@ -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 (Supports Multiple Arguments) ---
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 = {