Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Trim arguments#829

Closed
recht wants to merge 1 commit into
angular:masterfrom
recht:trim_arguments
Closed

Trim arguments#829
recht wants to merge 1 commit into
angular:masterfrom
recht:trim_arguments

Conversation

@recht
Copy link
Copy Markdown

@recht recht commented Mar 27, 2012

It turns out that if you have a function like this: function ( ) { }, Chrome will return the space in the empty parameter list while Firefox will not. This means that the injection lookup will get a string like this: " ", which is not handled in inferInjectionArgs.

@ghost ghost assigned IgorMinar Mar 28, 2012
IgorMinar added a commit to IgorMinar/angular.js that referenced this pull request Mar 29, 2012
Previously if there was a white-space in fn: fn( ) {} we failed to infer no args.

This was originally reported by recht, but I decided to use a different fix.

Closes angular#829
@IgorMinar
Copy link
Copy Markdown
Contributor

Thanks for the report! I took a slightly different approach to fix this bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants