Bug Tracker

Changes between Initial Version and Version 1 of Ticket #14715, comment 2


Ignore:
Timestamp:
Jan 22, 2014, 9:58:54 AM (9 years ago)
Author:
scottgonzalez
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14715, comment 2

    initial v1  
    11When I say “removing the surrounding Promise method”, I am referring to my JSBin sample code. Changing
    22
    3 ''base.$hideable.promise().done(function(){
     3{{{
     4base.$hideable.promise().done(function(){
    45    if(!isVisible) {
    56        $clicked.next('div.hiddenContent').slideDown(300)
    67    }
    7 })''
     8})
     9}}}
    810
    911…to…
    1012
    11 ''if(!isVisible) {
     13{{{
     14if(!isVisible) {
    1215    $clicked.next('div.hiddenContent').slideDown(300)
    13 }''
     16}
     17}}}
    1418
    1519… 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.