walmartlabs / thorax

Strengthening your Backbone
http://thoraxjs.org/
Other
1.32k stars 129 forks source link

Bug: IE8 loadInfo Event is null #416

Closed lolpack closed 9 years ago

lolpack commented 9 years ago

This PR fixes a bug in IE 8 where loadEvent is not available in the object.on handler in the loadHandler after a render is already done. This JS bin demonstrates the issue:http://jsfiddle.net/wLc8e7fn/1/ If you open the the bin in IE 8 (https://jsfiddle.net/wLc8e7fn/1/embedded/result/) and try to add a new name to the Heros list, it will give you the following error: 'loadInfo.events' is null or not an object