frapontillo/angular-bootstrap-switch — pull request #13 by s10z (2014-03-27 10:40:10+00:00)
Title: Removed template/replace usage to be IE8 compatible

On creation of an input element, the IE8 sets the attribute "type" to "text". AngularJS will thereby fail when merging attributes on replacement of the original DOM element with the template given element. Even if is given as template, this will result in writing "checkbox checkbox" into the type attribute of the input element.

This causes the IE8 to throw an exception and thereby prohibit any further JS execution. By enforcing just ot use input elements like the bootstrap-switch itself enforces it, we remain IE8 compatible.