mobile-angular-ui icon indicating copy to clipboard operation
mobile-angular-ui copied to clipboard

RequireJs

Open 666hxw opened this issue 8 years ago • 1 comments

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!

666hxw avatar Sep 08 '16 13:09 666hxw

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 [email protected] 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 .

mcasimir avatar Sep 08 '16 15:09 mcasimir