From: David Seifried Date: Thu, 23 Jun 2011 18:35:49 +0000 (-0400) Subject: [#594] Added some validation for options.license X-Git-Tag: v0.7^2~11^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=84d0264b9cc2ffe513aba561e0bcae7fbcd5f658;p=popcorn-js.git [#594] Added some validation for options.license --- diff --git a/plugins/attribution/popcorn.attribution.js b/plugins/attribution/popcorn.attribution.js index 72174b6..703ea96 100755 --- a/plugins/attribution/popcorn.attribution.js +++ b/plugins/attribution/popcorn.attribution.js @@ -64,7 +64,7 @@ _setup: function( options ) { var attrib = "", - license = licenses[ options.license.toLowerCase() ], + license = options.license && licenses[ options.license.toLowerCase() ], tar = "target=_blank"; // make a div to put the information into