update tests

pull/855/head
Rich Harris 7 years ago
parent ef3cf34367
commit 0b71a93779

@ -37,6 +37,10 @@ function setAttribute(node, attribute, value) {
node.setAttribute(attribute, value);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -89,13 +93,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -13,6 +13,10 @@ function assign(target) {
return target;
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -65,13 +69,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -33,6 +33,10 @@ function setAttribute(node, attribute, value) {
node.setAttribute(attribute, value);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -85,13 +89,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -33,6 +33,10 @@ function createText(data) {
return document.createTextNode(data);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -85,13 +89,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -46,6 +46,10 @@ function createText(data) {
return document.createTextNode(data);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -98,13 +102,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -33,6 +33,10 @@ function createText(data) {
return document.createTextNode(data);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -85,13 +89,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -37,6 +37,10 @@ function createComment() {
return document.createComment('');
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -89,13 +93,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -37,6 +37,10 @@ function createComment() {
return document.createComment('');
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -89,13 +93,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -29,6 +29,10 @@ function setStyle(node, key, value) {
node.style.setProperty(key, value);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -81,13 +85,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -29,6 +29,10 @@ function setStyle(node, key, value) {
node.style.setProperty(key, value);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -81,13 +85,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -29,6 +29,10 @@ function setStyle(node, key, value) {
node.style.setProperty(key, value);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -81,13 +85,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -29,6 +29,10 @@ function createText(data) {
return document.createTextNode(data);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -81,13 +85,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -33,6 +33,10 @@ function removeListener(node, event, handler) {
node.removeEventListener(event, handler, false);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -85,13 +89,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -31,6 +31,10 @@ function setInputType(input, type) {
} catch (e) {}
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -83,13 +87,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -48,6 +48,10 @@ function claimElement (nodes, name, attributes, svg) {
return svg ? createSvgElement(name) : createElement(name);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -100,13 +104,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -41,6 +41,10 @@ function timeRangesToArray(ranges) {
return array;
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -93,13 +97,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -27,6 +27,10 @@ function createText(data) {
return document.createTextNode(data);
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -79,13 +83,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -13,6 +13,10 @@ function assign(target) {
return target;
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -65,13 +69,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -13,6 +13,10 @@ function assign(target) {
return target;
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -65,13 +69,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

@ -37,6 +37,10 @@ function createComment() {
return document.createComment('');
}
function blankObject() {
return Object.create(null);
}
function destroy(detach) {
this.destroy = noop;
this.fire('destroy');
@ -89,13 +93,8 @@ function get(key) {
function init(component, options) {
component.options = options;
component._observers = {
pre: Object.create(null),
post: Object.create(null)
};
component._handlers = Object.create(null);
component._observers = { pre: blankObject(), post: blankObject() };
component._handlers = blankObject();
component._root = options._root || component;
component._yield = options._yield;
component._bind = options._bind;

Loading…
Cancel
Save