Merge branch 'next' of https://github.com/lhorie/mithril.js into test-fix

This commit is contained in:
impinball 2016-03-02 14:05:21 -05:00
commit 199da9c21b
19 changed files with 4732 additions and 2868 deletions

View file

@ -47,6 +47,9 @@ window.mock = (function () {
"use strict"
var window = {}
window.window = window
var document = window.document = {
// FIXME: add document.createRange().createContextualFragment()
@ -138,7 +141,7 @@ window.mock = (function () {
name = name.toLowerCase()
var out = []
function traverse(node){
function traverse(node) {
if (node.childNodes && node.childNodes.length > 0) {
node.childNodes.forEach(function (curr) {
if (curr.nodeName.toLowerCase() === name) {
@ -158,7 +161,7 @@ window.mock = (function () {
window.scrollTo = function () {}
;(function (window) {
;(function () {
// This is an actual conforming implementation of the
// requestAnimationFrame spec, with the nonstandard extension of
// rAF.$resolve for running the callbacks. It works in Node and the
@ -214,7 +217,7 @@ window.mock = (function () {
}
window.requestAnimationFrame = requestAnimationFrame
})(window)
})()
window.XMLHttpRequest = (function () {
function Request() {