chuanxshi / javascript-patterns

JavaScript Design Patterns
http://shichuan.github.io/javascript-patterns
9.39k stars 1.69k forks source link

Added missing object definition. #114

Closed hitautodestruct closed 6 years ago

hitautodestruct commented 10 years ago

I'm not a 100% sure on the placement of the object declaration as it falls under the "antipatern" heading and makes it look like you shouldn't declare or use the "single var" pattern.

Although, it might be better to let the reader figure it out.

chuanxshi commented 6 years ago

@hitautodestruct thanks, merged!