While trying to get nprogress to play nice with Ember.js, it became necessary to be able to provide an alternate scheduling function, since Ember needs to know about setTimeout code.
By default, the code works exactly the same, but if given a scheduler function in the configuration, it will use that instead. This allows Ember to provide it's own scheduling function, allowing the two to play nice together.
While trying to get
nprogress
to play nice with Ember.js, it became necessary to be able to provide an alternate scheduling function, since Ember needs to know aboutsetTimeout
code.By default, the code works exactly the same, but if given a
scheduler
function in the configuration, it will use that instead. This allows Ember to provide it's own scheduling function, allowing the two to play nice together.