Skip to content

Commit

Permalink
Merge pull request camsong#132 from fa-ge/index-pr
Browse files Browse the repository at this point in the history
fix index error
  • Loading branch information
camsong authored Feb 6, 2017
2 parents 073f9cf + 79e6936 commit c5a5006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ In place of common selectors like class, id or attribute we can use `document.qu

```js
// jQuery
$(e.currentTarget).index('.radio');
$('.radio').index(e.currentTarget);
// Native
Array.prototype.indexOf.call(document.querySelectorAll('.radio'), e.currentTarget);
Expand Down

0 comments on commit c5a5006

Please sign in to comment.