chuanxshi / javascript-patterns

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

Error in JQuery append #17

Closed archaeron closed 12 years ago

archaeron commented 12 years ago

https://github.com/shichuan/javascript-patterns/blob/master/jquery-patterns/append.html#L23

I think this line:

var newLI = '<li>' + item + '</li>';

should be like this:

var newLI = $('<li>' + item + '</li>');
chuanxshi commented 12 years ago

@archaeron thanx for pointing it out :)

chuanxshi commented 12 years ago

this is now fixed at 4e339c7e0b9cf116594b96ceada25fbc93aec795, closing issue

archaeron commented 12 years ago

welcome :)