Skip to content Skip to sidebar Skip to footer

This.set Is Not A Function Error

Inside my controller I have this code to fade out a div: popUpFadeOut: function(){ if(this.get('bid.popUpContainerOpacity') === 0){ this.set('bid.popUpContainerOpacity', 1); this.s

Solution 1:

In your timeout call, shift to this.fading.bind(this). You should then have the proper this bound to be used when calling set


Post a Comment for "This.set Is Not A Function Error"