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

futureName ternary operator syntax incorrect #4315

Closed
neilsoult opened this issue Oct 7, 2013 · 1 comment
Closed

futureName ternary operator syntax incorrect #4315

neilsoult opened this issue Oct 7, 2013 · 1 comment

Comments

@neilsoult
Copy link

from angular.js / src / ngScenario / dsl.js : lines 441-443

futureName = (args.length == 0)
              ? "element '" + this.label + "' " + methodName
              : futureName = "element '" + this.label + "' set " + methodName + " to '" + value + "'";

futureName declaration in ternary operator is redundant. code should be:

futureName = (args.length == 0)
              ? "element '" + this.label + "' " + methodName
              : "element '" + this.label + "' set " + methodName + " to '" + value + "'";
@petebacondarwin
Copy link
Member

Good spot. Just building and testing

jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants