File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- /**
1+ /**
22 * @preserve LaziestLoader - v0.5.1 - 2014-06-19
33 * A responsive lazy loader for jQuery.
44 * http://sjwilliams.github.io/laziestloader/
9999 /**
100100 * Reflect loaded state in class names
101101 * and fire event.
102- *
102+ *
103103 * @param {jQuery Object } $el
104104 */
105105 function onLoad ( $el ) {
106106 $el . addClass ( 'll-loaded' ) . removeClass ( 'll-notloaded' ) ;
107107 $el . trigger ( 'loaded' ) ;
108108
109109 if ( typeof callback === 'function' ) {
110- callback . call ( $el ) ;
110+ callback . call ( $el ) ;
111111 }
112112 }
113113
136136 }
137137 }
138138
139- // Determine when to fire `loaded` event. Wait until
139+ // Determine when to fire `loaded` event. Wait until
140140 // media is truly loaded if possible, otherwise immediately
141141 if ( options . setSourceMode && ( this . nodeName === 'IMG' || this . nodeName === 'VIDEO' || this . nodeName === 'AUDIO' ) ) {
142142 if ( this . nodeName === 'IMG' ) {
143143 this . onload = function ( ) {
144144 onLoad ( $el ) ;
145- }
145+ } ;
146146 } else {
147147 this . onloadstart = function ( ) {
148148 onLoad ( $el ) ;
149- }
149+ } ;
150150 }
151151 } else {
152152 onLoad ( $el ) ;
228228 }
229229 }
230230
231- // add inital state classes, and check if
231+ // add inital state classes, and check if
232232 // element dimensions need to be set.
233233 $elements . addClass ( 'll-init ll-notloaded' ) . each ( setHeight ) ;
234234
You can’t perform that action at this time.
0 commit comments