-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent .toLowerCase() error and add new angular valid selector prefixes
- Loading branch information
1 parent
fe852ca
commit 694c2f7
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ FindSelectors.prototype.parseFileContent = function() { | |
|
||
FindSelectors.prototype.eachNodeCheck = function(node, selectors) { | ||
if (node.type == 'CallExpression' && node.callee.object && | ||
node.callee.object.name.toLowerCase() === 'by') { | ||
node.callee.object.name && node.callee.object.name.toLowerCase() === 'by') { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
stramel
Contributor
|
||
var lineInfo = node.arguments[0].loc.start; | ||
var lineAndColumn = lineInfo.line + ':' + lineInfo.column; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@stramel I had to add it here because I was getting an error saying it was trying to execute
.toLowerCase()
in undefined value.