firstopinion/formatter.js — pull request #60 by kyledetella (2014-08-08 13:44:48+00:00)
Title: Prevent 'Access Denied' error in IE8 when used inside of an iFrame.

This commit wraps the `document.selection.createRange();` call in a try/catch to prevent exceptions when library is used inside of an iFrame. If `createRange` does error out, the `inputSel.get` method will ultimately return `{ begin: 0, end: 0}` as it always has.