]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#565] Made a small perf fix
authorDavid Seifried <david.c.seifried@gmail.com>
Thu, 23 Jun 2011 17:54:30 +0000 (13:54 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Thu, 23 Jun 2011 17:54:30 +0000 (13:54 -0400)
plugins/subtitle/popcorn.subtitle.js

index 37049e89f7e3a84e4f0ef010862fd3e7a01617e8..a8e9177ae42ef8e9eb61fc9e45ddb7fd1bc7a406 100755 (executable)
@@ -6,7 +6,7 @@
       i = 0,
       callBack = function( data ) {
 
-        if ( typeof google !== "undefined" && google.load ) {
+        if ( window.google && google.load ) {
 
           google.load( "language", "1", { 
             callback: function() {