marijnh/CodeMirror — pull request #972 by wickning1 (2012-11-13 22:01:41+00:00)
Title: Fix for IE7/8 issue when submitting with form.submit()

For some reason "typeof textarea.form.submit" evaluates to "object" under IE8 instead of "function". This bypasses the region of code that is supposed to make sure changes get saved when using form.submit() instead of using a submit button.

I don't understand why that "if" statement is there in the first place, but to be as low impact as possible I just expanded it to accept "object" as a type.