You're totally right. I'll fix and update.

On Tue, Jul 23, 2013 at 9:10 PM, Mick Thompson <notifications@github.com>
wrote:

>>  
>> -    var height = $(window).height();
>> +var executeAction = function(action, data) {
>> +  if(action === "image"){
>> +    showImage(data);
>> +  }
>> +  if(action === "video"){
>> +    showVideo(data);
>> +  }
>> +  if(action === "iframe"){
>> +    showIFrame(data);
>> +  } else {
> If I send something with action=image  It will try to display it as both an image, and an iframe at the same time.  These should be a series of `else if`
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/dthompson/billboard/pull/13/files#r5363399