Skip to content

Commit

Permalink
fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyou committed Feb 28, 2017
1 parent fdfa4d0 commit 1519904
Show file tree
Hide file tree
Showing 38 changed files with 4 additions and 3 deletions.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified README.textile
100644 → 100755
Empty file.
Empty file modified examples/css/appelsiini.css
100644 → 100755
Empty file.
Empty file modified examples/css/font-awesome.min.css
100644 → 100755
Empty file.
Empty file modified examples/css/jieyou.css
100644 → 100755
Empty file.
Empty file modified examples/disabled.html
100644 → 100755
Empty file.
Empty file modified examples/enabled.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_ajax.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_amd.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_background.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_container.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_fadein.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_gazillion.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_image_full_width.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_no_fake_img_loader.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_noscript.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_srcset.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_timeout.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_url_rewriter_fn.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_vertical_only.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_wide.html
100644 → 100755
Empty file.
Empty file modified examples/enabled_wide_container.html
100644 → 100755
Empty file.
Empty file modified examples/font/fontawesome-webfont.woff
100644 → 100755
Empty file.
Empty file modified examples/img/bmw_m1_hood.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/img/bmw_m1_hood_rewritten.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/img/bmw_m1_side.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/img/bmw_m3_gt.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/img/corvette_pitstop.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/img/grey.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/img/transparent.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/img/viper_1.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/img/viper_corner.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/img/white.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/page_js/html5shiv.js
100644 → 100755
Empty file.
Empty file modified examples/remove_invisible.html
100644 → 100755
Empty file.
7 changes: 4 additions & 3 deletions lazyload.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,11 @@
}

$.each(defaultOptions,function(k,v){
var typeK = type(options[k])
if($.inArray(k,['threshold','failure_limit','check_appear_throttle_time']) != -1){ // these params can be a string
if(type(options[k]) == 'String'){
if(typeK == 'String'){
options[k] = parseInt(options[k],10)
}else{
}else if(typeK != 'Number'){
options[k] = v
}
}else if(k == 'container'){ // options.container can be a seletor string \ dom \ jQuery object
Expand All @@ -193,7 +194,7 @@
options._$container = $window
}
delete options.container
}else if(defaultOptions.hasOwnProperty(k) && (!options.hasOwnProperty(k) || (type(options[k]) != type(defaultOptions[k])))){
}else if(defaultOptions.hasOwnProperty(k) && (!options.hasOwnProperty(k) || (typeK != type(defaultOptions[k])))){
options[k] = v
}
})
Expand Down
Empty file modified lazyload.min.js
100644 → 100755
Empty file.

0 comments on commit 1519904

Please sign in to comment.