From b2128609ac8159a14224deba399144b3400c8c20 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 13 Nov 2016 08:16:12 +0100 Subject: Finally give in and use React, minor tweeks. Preact (a minimalistic React alternative) had too many bugs ... --- thirdparty/preact/src/util.js | 68 ------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 thirdparty/preact/src/util.js (limited to 'thirdparty/preact/src/util.js') diff --git a/thirdparty/preact/src/util.js b/thirdparty/preact/src/util.js deleted file mode 100644 index d2e63b090..000000000 --- a/thirdparty/preact/src/util.js +++ /dev/null @@ -1,68 +0,0 @@ -/** Copy own-properties from `props` onto `obj`. - * @returns obj - * @private - */ -export function extend(obj, props) { - if (props) { - for (let i in props) obj[i] = props[i]; - } - return obj; -} - - -/** Fast clone. Note: does not filter out non-own properties. - * @see https://esbench.com/bench/56baa34f45df6895002e03b6 - */ -export function clone(obj) { - return extend({}, obj); -} - - -/** Get a deep property value from the given object, expressed in dot-notation. - * @private - */ -export function delve(obj, key) { - for (let p=key.split('.'), i=0; i lcCache[s] || (lcCache[s] = s.toLowerCase()); - - -/** Call a function asynchronously, as soon as possible. - * @param {Function} callback - */ -let resolved = typeof Promise!=='undefined' && Promise.resolve(); -export const defer = resolved ? (f => { resolved.then(f); }) : setTimeout; -- cgit v1.2.3