Skip to content

Commit

Permalink
Merge pull request #144 from ludder/master
Browse files Browse the repository at this point in the history
Fix typo to make Superhero example work
  • Loading branch information
addyosmani committed Nov 30, 2014
2 parents ec1f916 + a453f7b commit 7b8eb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3233,7 +3233,7 @@ <h2>Sub-classing</h2>
this.powers = powers;
};

SuperHero.prototype = Object.create( Person.prototype );
Superhero.prototype = Object.create( Person.prototype );
var superman = new Superhero( "Clark" ,"Kent" , ["flight","heat-vision"] );
console.log( superman );

Expand Down

0 comments on commit 7b8eb6a

Please sign in to comment.