jhollingworth/bootstrap-wysihtml5 — pull request #209 by weotch (2013-02-06 20:28:02+00:00)
Title: Fixing issue with multiple instances on a page

I was getting a "Uncaught Error: NOT_FOUND_ERR: DOM Exception 8 for appendChild call" error when I had multiple textareas with WYSIWYGs on the same page. It was because, for the second instance, the options.toolbar was defined for the `createToolbar()` because of how it gets added into the `options` object in `createEditor()` before being passed to `new wysi.Editor`.

This fix clones the options object before adding the toolbar.