diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-13 08:16:12 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-13 08:16:52 +0100 |
commit | b2128609ac8159a14224deba399144b3400c8c20 (patch) | |
tree | 4759dfda67c54f6838c3aef0951545ae18bb83bd /thirdparty/preact/src/constants.js | |
parent | 3f0ee289c4a61991d0e75906a9bd949cebb39d20 (diff) |
Finally give in and use React, minor tweeks.
Preact (a minimalistic React alternative) had too many bugs ...
Diffstat (limited to 'thirdparty/preact/src/constants.js')
-rw-r--r-- | thirdparty/preact/src/constants.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/thirdparty/preact/src/constants.js b/thirdparty/preact/src/constants.js deleted file mode 100644 index 138cd0983..000000000 --- a/thirdparty/preact/src/constants.js +++ /dev/null @@ -1,20 +0,0 @@ -// render modes - -export const NO_RENDER = 0; -export const SYNC_RENDER = 1; -export const FORCE_RENDER = 2; -export const ASYNC_RENDER = 3; - -export const EMPTY = {}; - -export const ATTR_KEY = typeof Symbol!=='undefined' ? Symbol.for('preactattr') : '__preactattr_'; - -// DOM properties that should NOT have "px" added when numeric -export const NON_DIMENSION_PROPS = { - boxFlex:1, boxFlexGroup:1, columnCount:1, fillOpacity:1, flex:1, flexGrow:1, - flexPositive:1, flexShrink:1, flexNegative:1, fontWeight:1, lineClamp:1, lineHeight:1, - opacity:1, order:1, orphans:1, strokeOpacity:1, widows:1, zIndex:1, zoom:1 -}; - -// DOM event types that do not bubble and should be attached via useCapture -export const NON_BUBBLING_EVENTS = { blur:1, error:1, focus:1, load:1, resize:1, scroll:1 }; |