Skip to content
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

Fix undefined variable testFn #67

Merged
merged 2 commits into from
Nov 21, 2016
Merged

Conversation

arielserafini
Copy link
Contributor

this causes jasminewd2 to be incompatible with strict mode.

this causes jasminewd2 to be incompatible with strict mode.
Copy link
Contributor

@sjelin sjelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great change, small fix

var async = fn.length > 0;
testFn = fn.bind(this);
var async = fn.length > 0,
testFn = fn.bind(this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer:

var async = fn.length > 0;
var testFn = fn.bind(this);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer it that way too. Will change.
I only submitted it that way because I looked for other variable definitions and it seems there's no consistent style being used in this file.

@sjelin sjelin merged commit e05cd3c into angular:jasminewd2 Nov 21, 2016
cnishina pushed a commit to cnishina/jasminewd that referenced this pull request Jan 6, 2017
* Fix undefined variable testFn

this causes jasminewd2 to be incompatible with strict mode.

* fix variable definition style
cnishina pushed a commit that referenced this pull request Jan 6, 2017
* Fix undefined variable testFn

this causes jasminewd2 to be incompatible with strict mode.

* fix variable definition style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants