File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 105105
106106 function bindLoader ( ) {
107107 $elements . one ( 'laziestloader' , function ( ) {
108+ var $el = $ ( this ) ;
108109 var source ;
109110
110111 // set height?
111- if ( $ ( this ) . data ( ) . ratio ) {
112+ if ( $el . data ( ) . ratio ) {
112113 setHeight . call ( this ) ;
113114 }
114115
115116 // set content. default: set element source
116117 if ( options . setSourceMode ) {
117- source = options . getSource ( $ ( this ) ) ;
118+ source = options . getSource ( $el ) ;
118119 if ( source && this . getAttribute ( 'src' ) !== source ) {
119120 this . setAttribute ( 'src' , source ) ;
120121 if ( typeof callback === 'function' ) callback . call ( this ) ;
124125 }
125126
126127 // reflect current state in classes
127- $ ( this ) . addClass ( 'll-loaded' ) . removeClass ( 'll-notloaded' ) ;
128+ $el . addClass ( 'll-loaded' ) . removeClass ( 'll-notloaded' ) ;
128129 } ) ;
129130 }
130131
You can’t perform that action at this time.
0 commit comments