RailsCasts Pro episodes are now free!

Learn more or hide this

Benjamin Wheeler's Profile

GitHub User: benjiwheeler

Site: ditditdash.com

Comments by Benjamin Wheeler


figured out why calling html() with an element object works at all:

...so the html() code WAS working right, but it's really calling .append(). Probably clearer to just use append().

(there's a big advantage to appending the element, rather than just the html from it by doing basically .html(...el.html()) : the @el object can be changed in the future in the js code, and we don't need to bother #container again.)

also, this was keeping me from getting that reset callback: