mcasimir / mobile-angular-ui

Angular.js Mobile UI Framework with Bootstrap 3
http://mobileangularui.com/
MIT License
2.87k stars 711 forks source link

RequireJs #389

Open 666hxw opened 7 years ago

666hxw commented 7 years ago

When I use RequireJs in my project under this framework! I found a error, in a js file which name is "mobile-angular-ui.core.js". The line of 832 in this file, you wrote these // AMD. Register as an anonymous module. define(function(){ return FastClick; `});``

There is the question what I meet, if I use RequireJs , I can't get FasClick in the gloabl variable "window", So this file will throw a error, "FastClick is undefined!" The line of 1183, var orgHandler = FastClick.prototype.onTouchEnd; We can't find FastClick in the gloabl variable "window"! I don't know why you'll wrote this code? Forgive my broken english! I hope you can understand what I want to say!

mcasimir commented 7 years ago

Hi James, thanks for reporting this, i'll check. Not totally sure how that ended up there. But i believe that's the distributed package, so it's directly coming from fastclick. I'll let u know.

Il gio 8 set 2016, 15:46 James Allen notifications@github.com ha scritto:

When I use RequireJs in my project under this framework! I found a error, in a js file which name is "mobile-angular-ui.core.js". The line of 832 in this file, you wrote these // AMD. Register as an anonymous module. define(function(){ return FastClick; });`

There is the question what I meet, if I use RequireJs , I can't get FasClick in the gloabl variable "window", So this file will throw a error, "FastClick is undefined!" The line of 1183, var orgHandler = FastClick.prototype.onTouchEnd; We can't find FastClick in the gloabl variable "window"! I don't know why you'll wrote this code? Forgive my broken english! I hope you can understand what I want to say!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mcasimir/mobile-angular-ui/issues/389, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUcITtwQZ4087WtwjWb9yjJfHxSelYaks5qoBGtgaJpZM4J4Aly .