chuanxshi / javascript-patterns

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

Fixed spacing for better consistency #138

Closed AlexJeng closed 6 years ago

AlexJeng commented 9 years ago

Fixed the spacing in code-reuse-patterns/prototypal-inheritance.html for better consistency.

For example, from:

// create a new person
var papa = new Person();
// inherit
var kid = object(papa);
// test that both the own property
// and the prototype property were inherited
console.log(kid.getName()); // "Adam"

to:

// create a new person
var papa = new Person();

// inherit
var kid = object(papa);

// test that both the own property
// and the prototype property were inherited
console.log(kid.getName()); // "Adam"
chuanxshi commented 6 years ago

@AlexJeng thanks, merged!