addyosmani / essential-js-design-patterns

Repo for my 'Learning JavaScript Design Patterns' book
http://addyosmani.com/resources/essentialjsdesignpatterns/book/
4.82k stars 792 forks source link

stray ; in example #80

Closed rostacik closed 11 years ago

rostacik commented 11 years ago

hi. at this URL http://addyosmani.com/resources/essentialjsdesignpatterns/book/#detailmodule in Object Literals part there is this example :

var myObjectLiteral = {

variableKey: variableValue,

functionKey: function () {
  // ...
};

};

functionKey trailing ; should be dropped.

regards, dusan

addyosmani commented 11 years ago

Already fixed. Thanks.