addyosmani / essential-js-design-patterns

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

Changed the function signature of extend() in the Observer Pattern code example #177

Closed svenheden closed 9 years ago

svenheden commented 9 years ago

Changed extend(source, target) to extend(target, source) to mimic the signature used in underscore, lodash, jQuery and ES2015's Object.assign() to avoid confusion.

addyosmani commented 9 years ago

Change LGTM. Thank you, @jonathanp!