]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
A small initial fix for scotts comments
authorDavid Seifried <david.c.seifried@gmail.com>
Fri, 23 Sep 2011 18:47:50 +0000 (14:47 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Fri, 23 Sep 2011 18:47:50 +0000 (14:47 -0400)
popcorn.js

index 59499b65cc5666c04dfca80b4f2039952632d223..4e54f8f748ccf511ec5618608d6123845460cd3a 100644 (file)
       options._natives.type = name;
       options._running = false;
 
-      natives[ "in" ] && ( natives.start = natives[ "in" ] );
-
-      natives[ "out" ] && ( natives.end = natives[ "out" ] );
+      natives.start = natives.start || natives[ "in" ];
+      natives.end = natives.end || natives[ "out" ]; 
 
       // Check for previously set default options
       defaults = this.options.defaults && this.options.defaults[ options._natives && options._natives.type ];