Closed dchekanov closed 8 years ago
AMD modules can be loaded by a number of different loaders, for example by SystemJS via jspm. Currently HTML5-History-API won't work with them because it assumes that requirejs is available if define is a function (https://github.com/devote/HTML5-History-API/blob/master/history.js#L19).
requirejs
define
An additional simple check if requirejs is available should fix this.
Yes, you right!
AMD modules can be loaded by a number of different loaders, for example by SystemJS via jspm. Currently HTML5-History-API won't work with them because it assumes that
requirejs
is available ifdefine
is a function (https://github.com/devote/HTML5-History-API/blob/master/history.js#L19).An additional simple check if
requirejs
is available should fix this.