From: David Seifried Date: Fri, 23 Sep 2011 18:47:50 +0000 (-0400) Subject: A small initial fix for scotts comments X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e59c38fc2ed013943c3c6ca6b19c8d2edebdd57c;p=popcorn-js.git A small initial fix for scotts comments --- diff --git a/popcorn.js b/popcorn.js index 59499b6..4e54f8f 100644 --- a/popcorn.js +++ b/popcorn.js @@ -1207,9 +1207,8 @@ 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 ];