]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#594] Added some validation for options.license
authorDavid Seifried <david.c.seifried@gmail.com>
Thu, 23 Jun 2011 18:35:49 +0000 (14:35 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Thu, 23 Jun 2011 18:35:49 +0000 (14:35 -0400)
plugins/attribution/popcorn.attribution.js

index 72174b6919d7b1bab0cd2a18a3c3c3c098b5be8b..703ea964ff4e8a5ecdf944031b12596e4f03462d 100755 (executable)
@@ -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