Officially drop IE9-10 support, pull out our hacks (#2296)
- I also fixed a bunch of related comments - I had to polyfill `requestAnimationFrame` for Node - Drive-by: run `eslint . --fix` - Drive-by: update transpiling info in CONTRIBUTING.md - Drive-by: we aren't the only ones going semicolon-free
This commit is contained in:
parent
a8473e63c9
commit
4a641092dc
17 changed files with 54 additions and 45 deletions
|
|
@ -5,6 +5,19 @@ var domMock = require("../../test-utils/domMock")
|
|||
var throttleMocker = require("../../test-utils/throttleMock")
|
||||
var apiRedraw = require("../../api/redraw")
|
||||
|
||||
// Because Node doesn't have this.
|
||||
if (typeof requestAnimationFrame !== "function") {
|
||||
global.requestAnimationFrame = (function (delay, last) {
|
||||
return function(callback) {
|
||||
var elapsed = Date.now() - last
|
||||
return setTimeout(function() {
|
||||
callback()
|
||||
last = Date.now()
|
||||
}, delay - elapsed)
|
||||
}
|
||||
})(16, 0)
|
||||
}
|
||||
|
||||
o.spec("redrawService", function() {
|
||||
var root, redrawService, $document
|
||||
o.beforeEach(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue