Only advancedMode() is working
GoogleCodeExporter opened this issue · comments
What steps will reproduce the problem?
1. Copy your code from trunk and save it as _closure_comp.php
2. used your small sample code and save it as _compilejs.php
_compilejs.php
<?php
include("_closure_comp.php"); // my copy of your file
$cc = new PhpClosure();
$cc -> add("js/adm_mod.js")
-> advancedMode()
-> useClosureLibrary()
-> cacheDir("jsmin/")
-> write();
?>
3. Call _compilejs.php
What is the expected output?
- When using advancedMode(), its working
- When using whitespaceOnly(), its NOT working
- When using simpleMode(), its NOT working
What do you see instead?
A lot of junk and files are bigger than originals...!
Sample
________________
var
COMPILED=!0,goog=goog||{};goog.global=this;goog.exportPath_=function(a,b,c){a=a.
split(".");c=c||goog.global;a[0]in c||!c.execScript||c.execScript("var
"+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void
0===b?c=c[d]?c[d]:c[d]={}:c[d]=b};
goog.define=function(a,b){var
c=b;COMPILED||(goog.global.CLOSURE_UNCOMPILED_DEFINES&&Object.prototype.hasOwnPr
operty.c¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
etc...
What version of the product are you using? On what operating system?
Revision 9 on Win7 and Chrome
Please provide any additional information below.
Original issue reported on code.google.com by fleduc.p...@gmail.com
on 22 Jul 2014 at 7:28