devote / HTML5-History-API

HTML5 History API expansion for browsers not supporting pushState, replaceState
http://spb-piksel.ru
MIT License
1.02k stars 182 forks source link

Support for AMD loaders other than RequireJS #92

Closed dchekanov closed 8 years ago

dchekanov commented 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).

An additional simple check if requirejs is available should fix this.

devote commented 8 years ago

Yes, you right!