The old code is not compatible when called by AMD library, such like RequireJS or SeaJS.
So I added that feature.
I didn't change the version number, because I think maybe you will not approve this PR. And also didn't build the JS files, because it can be automatically compiled.
If you can merge it into you repo and submit to Bower library, that will help.
The old code is not compatible when called by AMD library, such like RequireJS or SeaJS. So I added that feature. I didn't change the version number, because I think maybe you will not approve this PR. And also didn't build the JS files, because it can be automatically compiled. If you can merge it into you repo and submit to Bower library, that will help.