-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
adding angular array syntax for minification support #1
Conversation
+1 Good find |
@@ -1,14 +1,14 @@ | |||
'use strict'; | |||
|
|||
angular.module('ng.picturefill', []) | |||
.directive('pictureFill', function () { | |||
.directive('pictureFill', [function () { | |||
return { | |||
controller: 'PictureFillCtrl', | |||
link: function (scope, elem, attrs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
array syntax not needed for link functions. It's arguments are based on order not name
if you're using grunt to build you can just use the ng-min task and it will handle this for you. https://github.com/btford/grunt-ngmin |
Yes you can rely on that library. I thought there no harm in including it directly into the library to save the additional effort. Happy for you to reject the PR. Perhaps it is worth mentioning in the |
(i don't own this repository - just a polyfill for those in need) |
I had considered submitting this myself, thanks for doing so. While ngMin will do it for you, I like to be formed like this. |
adding angular array syntax for minification support
Thanks! |
Allows for error free minification