Authored by chenl

修复了编译报错的问题。review by 孙凯。

@@ -70,16 +70,18 @@ export default class BrandStore extends Component { @@ -70,16 +70,18 @@ export default class BrandStore extends Component {
70 duration: 255, 70 duration: 255,
71 children: message, 71 children: message,
72 animationEnd : () => { 72 animationEnd : () => {
73 - this._toast && this._toast._toastAnimationToggle = setTimeout(  
74 - () => {  
75 - this._toast && this._toast.hide({  
76 - duration: 0,  
77 - animationEnd: () => {  
78 - }  
79 - })  
80 - },  
81 - 1000  
82 - ); 73 + if(this._toast){
  74 + this._toast._toastAnimationToggle = setTimeout(
  75 + () => {
  76 + this._toast && this._toast.hide({
  77 + duration: 0,
  78 + animationEnd: () => {
  79 + }
  80 + })
  81 + },
  82 + 1000
  83 + );
  84 + }
83 } 85 }
84 }) 86 })
85 } 87 }