Skip to content

Commit cd1892e

Browse files
committed
Give a name to the amd export
1 parent 7c0ef93 commit cd1892e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pace.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Pace.track = (fn, args...) ->
311311
shouldTrack = (method='GET') ->
312312
if ignoreStack[0] is 'track'
313313
return 'force'
314-
314+
315315
if not ignoreStack.length and options.ajax
316316
if method is 'socket' and options.ajax.trackWebSockets
317317
return true
@@ -739,7 +739,7 @@ Pace.start = (_options) ->
739739

740740
if typeof define is 'function' and define.amd
741741
# AMD
742-
define -> Pace
742+
define ['pace'], -> Pace
743743
else if typeof exports is 'object'
744744
# CommonJS
745745
module.exports = Pace

0 commit comments

Comments
 (0)