File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,18 @@ function restoreSource(lazyItem) {
6666
6767 // Not using .dataset within those upfollowing lines of code for polyfill independent compatibility down to IE9
6868 srcsetItems . forEach ( ( item ) => {
69+ /* eslint-disable unicorn/prefer-dom-node-dataset */
6970 if ( item . hasAttribute ( 'data-lazy-srcset' ) ) {
7071 item . setAttribute ( 'srcset' , item . getAttribute ( 'data-lazy-srcset' ) ) ;
7172 item . removeAttribute ( 'data-lazy-srcset' ) ; // Not using delete .dataset here for compatibility down to IE9
7273 }
74+ /* eslint-enable unicorn/prefer-dom-node-dataset */
7375 } ) ;
7476
77+ /* eslint-disable unicorn/prefer-dom-node-dataset */
7578 lazyItem . setAttribute ( 'src' , lazyItem . getAttribute ( 'data-lazy-src' ) ) ;
7679 lazyItem . removeAttribute ( 'data-lazy-src' ) ; // Not using delete .dataset here for compatibility down to IE9
80+ /* eslint-enable unicorn/prefer-dom-node-dataset */
7781}
7882
7983/**
You can’t perform that action at this time.
0 commit comments