aboutsummaryrefslogtreecommitdiffstats
path: root/src/data/Data.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/Data.js')
-rw-r--r--src/data/Data.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/Data.js b/src/data/Data.js
index 31ff4318c..ce6d8fa9b 100644
--- a/src/data/Data.js
+++ b/src/data/Data.js
@@ -22,7 +22,7 @@ Data.prototype = {
// If not, create one
if ( !value ) {
- value = {};
+ value = Object.create( null );
// We can accept data for non-element nodes in modern browsers,
// but we should not, see #8335.