-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaks when minified #55
Comments
hi @ozairabbas , May I know which minifier did you use? Have you tried to use http://jscompress.com? |
I just ran into the same problem, I'm using the ASP.NET web optimizations minification and bundling package (MVC5), I've included dozens of other angular libraries and they all seem to work fine, keeps giving an error on 'prevTabIndex', any ideas? Just skimming through thr code for thr directive it seems to be written minification safe. |
This is peculiar, I just ran a small test with the same asp.net minifier and everything worked fine, I'll take another look at it when I get home. |
I've manually checked the code.. looks ok to me. I suggest to minify it manually if possible. Btw make sure that you get the latest version. |
Just to add that I'm also using ASP.NET minification (System.Web.Optimization) and I have 0 problems with this component. It's probably some of the JS components that you are using that's causing the problem - I've had quite few issues when combining Jquery, angular and different angular components in single bundles (some just don't play nicely with each other). |
There IS a slight problem though, I just figured it out. I was bundling this directive along with my own scripts, and I always code in
The code is riddled with implicitly defined variables, Tbh I personally never understood this practice, I mean your code will most probably work fine but Jesus it will look hideous. Inspecting the JsHint warnings in Visual Studio gives you more of an insight, for example: In my case the 2 workarounds were:
I opted the latter, only took about 5/6 minutes thanks to JsHint. HTH. |
Hi @ElDuderino87 , Thanks for pointing this out. Will consider using strict mode for the next release. |
@isteven You're most welcome. Thank you for the awesome directive :). |
Brakes at 'prevTabIndex is not defined at link'
Can you please add the minified version
The text was updated successfully, but these errors were encountered: