Skip to content

Commit 6a63eac

Browse files
committed
fix: replace .size() with .length
As per: magoosh#27
1 parent 9fb0076 commit 6a63eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/jquery.infinite-pages.js.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Released under the MIT License
6262
# load event if close enough
6363
check: ->
6464
nav = @$container.find(@options.navSelector)
65-
if nav.size() == 0
65+
if (if typeof nav.size == 'function' then nav.size() else nav.length) == 0
6666
@_log "No more pages to load"
6767
else
6868
windowBottom = @$context.scrollTop() + @$context.height()

0 commit comments

Comments
 (0)