In browsers, export more carefully

This commit is contained in:
Tony Garnock-Jones 2014-05-25 13:34:32 -04:00
parent 1ccc4377f3
commit 305289db57
1 changed files with 2 additions and 1 deletions

View File

@ -1320,5 +1320,6 @@ function Routing(exports) {
if (typeof module !== 'undefined' && module.exports) {
Routing(module.exports);
} else if (window) {
Routing(window);
window.route = {};
Routing(window.route);
}