Skip to content

Commit

Permalink
Fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
lawlesscreation committed Feb 15, 2016
1 parent c0b7e08 commit 5eba011
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ Our standard for writing JavaScript.

```javascript
// bad
fooElement.addEventListener('click', function(e){
fooElement.addEventListener('click', function(e) {
// ...stuff...
});

// good
fooElement.addEventListener.click('click', function(event){
fooElement.addEventListener('click', function(event) {
// ...stuff...
});
```
Expand Down Expand Up @@ -367,4 +367,4 @@ CSS is effective, maintainable and readable inside stylesheets. It is neither of

### Further reading

- [W3C: Avoid mixing technologies](https://www.w3.org/wiki/JavaScript_best_practices#Avoid_mixing_with_other_technologies)
- [W3C: Avoid mixing technologies](https://www.w3.org/wiki/JavaScript_best_practices#Avoid_mixing_with_other_technologies)

0 comments on commit 5eba011

Please sign in to comment.