backplanespecs / backplane-core

Backplane Core Specification
16 stars 3 forks source link

Patch for safer script block appending. #3

Closed itaylor closed 13 years ago

itaylor commented 13 years ago

Changed script tag insertion to use DOM creation instead of document.write. This makes it safe to call Backplane.init() after DOMContentLoaded. Before this commit, calling Backplane.init() after DOMLoad resulted in overwriting the target DOM with a new HTML document containing a single script block.