Closed jridgewell closed 8 years ago
Should cases like:
function test(props) {
props.key = 1;
_statics31[3] = props.key;
return elementVoid("div", props.key, _statics31);
}
Be resetting the value afterwards to avoid memory leaks?
function test(props) {
props.key = 1;
_statics31[3] = props.key;
var _result = elementVoid("div", props.key, _statics31);
_statics31[3] = null;
return _result;
}
We could, but these should be simple strings (or numbers, but really just strings).
What about event handlers?
The _statics31[3] = key
is only for the key attribute, objects (and functions) won't work properly with the keyMap
inside iDOM.
Ooh I see.
Good to go?
Yeah, looks good.
Following the best practices of iDOM, we should hoist our statics array as high as we can.
undefined
in the array.Implemented as an option for now, until I'm confident we've found the edge cases.