diff options
author | tg(x) <*@tg-x.net> | 2016-10-05 00:02:10 +0200 |
---|---|---|
committer | tg(x) <*@tg-x.net> | 2016-10-05 00:02:10 +0200 |
commit | ec62d29c90958aa8d41474ed2fe5a179d6fafed7 (patch) | |
tree | 367cc55bc6772cf194ed6c4778cd344d581d3d7c /thirdparty/preact/src/constants.js | |
parent | fda241d74d5c1c39203b64da676c684d4dc9d800 (diff) | |
parent | d3ccf4103900b8d990b1970d135695b938d94eae (diff) |
Merge branch 'master' of taler.net:/var/git/wallet-webex
Diffstat (limited to 'thirdparty/preact/src/constants.js')
-rw-r--r-- | thirdparty/preact/src/constants.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/thirdparty/preact/src/constants.js b/thirdparty/preact/src/constants.js new file mode 100644 index 000000000..138cd0983 --- /dev/null +++ b/thirdparty/preact/src/constants.js @@ -0,0 +1,20 @@ +// 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 }; |