jQuery on () stopPropagation не работает?

Кажется, я не могу заставить это перестать распространяться ..

  $(document).ready(function(){
      $("body").on("click","img.theater",function(event){ 
          event.stopPropagation();    
          $('.theater-wrapper').show();
      }); 

       // This shouldn't fire if I click inside of the div that's inside of the 
       // `.theater-wrapper`, which is called `.theater-container`, anything else it should.
       $(".theater-wrapper").click(function(event){
           $('.theater-wrapper').hide();
       }); 
  });

Обратитесь к этому jsfiddle

20
задан Flimzy 23 August 2015 в 23:32
поделиться