From: David Seifried Date: Thu, 23 Jun 2011 17:54:30 +0000 (-0400) Subject: [#565] Made a small perf fix X-Git-Tag: v0.7^2~12^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4ab81035aa2086e3b7ab5a4b346b50869096c160;p=popcorn-js.git [#565] Made a small perf fix --- diff --git a/plugins/subtitle/popcorn.subtitle.js b/plugins/subtitle/popcorn.subtitle.js index 37049e8..a8e9177 100755 --- a/plugins/subtitle/popcorn.subtitle.js +++ b/plugins/subtitle/popcorn.subtitle.js @@ -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() {