akre54/backbone — pull request #14 by wyuenho (2014-03-03 15:58:57+00:00)
Title: View conformance tests for jashkenas/backbone#3003

Tests passed from IE 6 - 11, Firefox, Safari and Chrome.

The custom events with namespace test is only performed when [jQuery is available](https://github.com/wyuenho/backbone/compare/akre54:view-native-hooks...wyuenho:view-native-hooks#diff-34a671f10b8754774058ba5f12a84129R259) so people can just copy and this test, `s/Backbone\.View/Backbone\.OtherView/g` and test against their own implementation.

TODOs:
- [ ] Remove synthetic-dom-events if possible. Could use some help from @jdalton here :).
- [ ] Actually test this against as many existing View subclasses as possible.
- [ ] Find a way to inject dependency so people don't have to global replace Backbone.View.
- [ ] See if it's possible to avoid calling `document.body.insert|removeChild`.