Below is the code for my YWA wrapper
var astr_ywascript = (document.createElement("script").type = "text/javascript").src = "http://d.yimg.com/mi/eu/ywa.js";
document.head.appendChild(astr_ywascript); // <- error on this line
It's run on page load, so it makes no sense that JS can't find the document head tag.
Any ideas?
Thanks
Opera throws this error on the same line. Uncaught exception: Error: WRONG_ARGUMENTS_ER
Firebug says: document.head is undefined [Break On This Error] document.head.appendChild(astr_ywascript);
return this;
in your render() method, which returns a reference to the Backbone View itself, when it sounds like you were expectingreturn this.el
which would let you do$(...).html(@view.render())
– Obeah