Changes between Initial Version and Version 1 of Ticket #14715, comment 2
- Timestamp:
- Jan 22, 2014, 9:58:54 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14715, comment 2
initial v1 1 1 When I say “removing the surrounding Promise method”, I am referring to my JSBin sample code. Changing 2 2 3 ''base.$hideable.promise().done(function(){ 3 {{{ 4 base.$hideable.promise().done(function(){ 4 5 if(!isVisible) { 5 6 $clicked.next('div.hiddenContent').slideDown(300) 6 7 } 7 })'' 8 }) 9 }}} 8 10 9 11 …to… 10 12 11 ''if(!isVisible) { 13 {{{ 14 if(!isVisible) { 12 15 $clicked.next('div.hiddenContent').slideDown(300) 13 }'' 16 } 17 }}} 14 18 15 19 … prevents the problem from happening. Obviously I cannot actually do this, but I thought it might highlight that it was the “Promise” that was causing the error. Clearly this is not the case.