From: ScottDowne Date: Fri, 22 Jul 2011 14:25:46 +0000 (-0400) Subject: [#461] review fixes X-Git-Tag: v0.8^2~7^2~3^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9923bf98cbecb4f2ca0471f71ada6551f8c97637;p=popcorn-js.git [#461] review fixes --- diff --git a/plugins/mustache/popcorn.mustache.js b/plugins/mustache/popcorn.mustache.js index 92813e8..d54af2d 100755 --- a/plugins/mustache/popcorn.mustache.js +++ b/plugins/mustache/popcorn.mustache.js @@ -108,8 +108,9 @@ } } else if ( typeOfTemplate === 'string' ) { template = options.template; + } else if ( Popcorn.plugin.debug ) { + throw new Error( 'Mustache Plugin Error: options.template must be a String or a Function.' ); } else { - Popcorn.plugin.debug && Popcorn.error( 'Mustache Plugin Error: options.template must be a String or a Function.' ); template = ""; } @@ -123,8 +124,9 @@ data = JSON.parse( options.data ); } else if ( typeOfData === 'object' ) { data = options.data; + } else if ( Popcorn.plugin.debug ) { + thros new Error( 'Mustache Plugin Error: options.data must be a String, Object, or Function.' ); } else { - Popcorn.plugin.debug && Popcorn.error( 'Mustache Plugin Error: options.data must be a String, Object, or Function.' ); data = ""; } diff --git a/plugins/timeline/popcorn.timeline.html b/plugins/timeline/popcorn.timeline.html index 880e2c2..e6dc422 100644 --- a/plugins/timeline/popcorn.timeline.html +++ b/plugins/timeline/popcorn.timeline.html @@ -11,6 +11,12 @@ .volume(0) .play() .timeline({ + start: 1, // seconds + target: "timeline", + title: "This is a title", + text: "this is some interesting text that goes inside", + innerHTML: "Click here for Google" , + direction: "down" } ) .timeline({ start: 3, // seconds