remove dead object code
parent
989f42204f
commit
f6eb6bd266
|
@ -26,12 +26,6 @@ function isNodeText(node) {
|
||||||
return (node.nodeType == 3);
|
return (node.nodeType == 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
function object(o) {
|
|
||||||
const f = function () {};
|
|
||||||
f.prototype = o;
|
|
||||||
return new f();
|
|
||||||
}
|
|
||||||
|
|
||||||
function getAssoc(obj, name) {
|
function getAssoc(obj, name) {
|
||||||
return obj[`_magicdom_${name}`];
|
return obj[`_magicdom_${name}`];
|
||||||
}
|
}
|
||||||
|
@ -75,7 +69,6 @@ function htmlPrettyEscape(str) {
|
||||||
const noop = function () {};
|
const noop = function () {};
|
||||||
|
|
||||||
exports.isNodeText = isNodeText;
|
exports.isNodeText = isNodeText;
|
||||||
exports.object = object;
|
|
||||||
exports.getAssoc = getAssoc;
|
exports.getAssoc = getAssoc;
|
||||||
exports.setAssoc = setAssoc;
|
exports.setAssoc = setAssoc;
|
||||||
exports.binarySearch = binarySearch;
|
exports.binarySearch = binarySearch;
|
||||||
|
|
Loading…
Reference in New Issue