Cotten
Cotten

Reputation: 9077

knockout.js with jQuery 1.9.0 breaks in IE 8

This code is taken directly from knockoutjs.com tutorials:

<ul data-bind="foreach: months">
    <li>
        The current item is: <b data-bind="text: $data"></b>
    </li>
</ul>

<script type="text/javascript">
    ko.applyBindings({
        months: [ 'Jan', 'Feb', 'Mar', 'etc' ]
    });
</script>

When I run this on http://jsfiddle.net/SaZv8/ with IE 8 it works as long as you don't include jQuery 1.9.0. When including 1.9.0 you get a Object doesn't support this property or method error.

Any thoughts? Thanks!

Upvotes: 3

Views: 1819

Answers (1)

peterfoldi
peterfoldi

Reputation: 7471

Looks like the error happens in jsfiddle's code: 'heyoffline.js' has an addEventListener call which is not supported in IE8. Note: I can reproduce it with other libraries selected, so it's not related to the jQuery1.9.

Upvotes: 2

Related Questions