Skip to content

Commit acf0e59

Browse files
committed
Initialize sources
1 parent 9f9693f commit acf0e59

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

pace.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ do init = ->
416416

417417
for type in ['ajax', 'elements', 'document', 'eventLag']
418418
if options[type] isnt false
419-
sources.push SOURCE_KEYS[type](options[type])
419+
sources.push new SOURCE_KEYS[type](options[type])
420420

421421
for source in options.extraSources ? []
422-
sources.push source(options)
422+
sources.push new source(options)
423423

424424
bar = new Bar
425425

pace.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pace.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)