jgallen23/routie

Double routing

Closed this issue · 1 comments

route = function(){
    '': function() {
        routie('splash')
    },
    'splash': function() {
        console.log('splashing')
    }
}

When navigating without # it activates the 'splash' function twice in webkit browsers

tested on:

  • linux chrome (activates twice)
  • linux firefox (activates once)
  • osX safari firefox (activates once)

Fixed this issue iwth a simple delay of 1ms do prevent double events.

CodeHunger@6eacb09