element-closest
Version:
Return the closest element matching a selector up the DOM tree
52 lines (31 loc) • 1.12 kB
Markdown
# Changes to closest
### 3.0.2 (October 31, 2019)
- Improved how the file is distributed to Node and Web environments.
### 3.0.1 (February 5, 2018)
- Fixed an issue where variables were declared out of order
### 3.0.0 (December 20, 2018)
- Rewritten for usage within Node environments
- Improved documentation
### 2.0.2 (October 26, 2016)
- Updated `Element` reference as `window.Element`
- Updated project configuration
### 2.0.1 (April 8, 2016)
- Fixed an issue referencing the current nodeType
### 2.0.0 (April 7, 2016)
- Added linting tests
- Updated plugin to combine legacy version
- Updated documentation
### 1.0.3 (June 8, 2015)
- Update method name and cleanup source
- Add method name to the polyfill
- Use consistent naming for element
- Place all prefixed fallbacks on the same line
### 1.0.2 (June 4, 2015)
- Updated documentation
### 1.0.1 (June 4, 2015)
- Prefix detection
- Check for getComputedStyle
- Treat computed style as an array rather than access cssText as a string
- Resolve "ms" prefix not detected on IE9 (Issue #5)
### 1.0.0 (February 19, 2015)
- Added: Initial version