Browse files

Not everyone wants Google Closure

  • Loading branch information...
1 parent 607c0f5 commit 190096352ea9d69c236787ea3ffb8a05bb80a60a @fauxparse committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/TwigJs/Compiler/ModuleCompiler.php
View
2 src/TwigJs/Compiler/ModuleCompiler.php
@@ -120,7 +120,7 @@ protected function compileClassHeader(JsCompiler $compiler, \Twig_NodeInterface
;
$compiler
- ->write("goog.provide('$functionName');\n\n")
+ ->write("if (goog) goog.provide('$functionName');\n\n")
->write(
"/**\n",
" * @constructor\n",

0 comments on commit 1900963

Please sign in to comment.