From 9a11e733d80540a49d1c627ec657fe7e0de81ea1 Mon Sep 17 00:00:00 2001 From: Kaeson Ho Date: Fri, 15 Apr 2016 11:43:45 -0700 Subject: [PATCH] be more defensive --- src/mixins/I13nUtils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mixins/I13nUtils.js b/src/mixins/I13nUtils.js index d3d07842..3f5d75b7 100644 --- a/src/mixins/I13nUtils.js +++ b/src/mixins/I13nUtils.js @@ -63,6 +63,9 @@ var I13nUtils = { * @return {Object} i13n node */ getI13nNode: function () { + if (!this._getReactI13n()) { + return; + } return this._i13nNode || this._getParentI13nNode(); },