Use JsShrink if jsxmin is not available
Summary: If `jsxmin` is not available, use a pure PHP implementation instead (JsShrink). Test Plan: - Ran `arc lint --lintall` on all JS and fixed every relevant warning. - Forced minification on and browsed around the site using JS behaviors. Didn't hit anything problematic. Reviewers: vrana, btrahan Reviewed By: vrana CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5670
This commit is contained in:
@@ -62,8 +62,10 @@ JX.behavior('phabricator-gesture-example', function(config) {
|
||||
cxt.fillStyle = '#dfdfdf';
|
||||
cxt.fillRect(0, 0, d.x, d.y);
|
||||
|
||||
for (var ii = 0; ii < strokes.length; ii++) {
|
||||
var s = strokes[ii];
|
||||
var s;
|
||||
var ii;
|
||||
for (ii = 0; ii < strokes.length; ii++) {
|
||||
s = strokes[ii];
|
||||
cxt.strokeStyle = 'rgba(0, 0, 0, 0.50)';
|
||||
cxt.beginPath();
|
||||
cxt.moveTo(s[0], s[1]);
|
||||
@@ -71,8 +73,8 @@ JX.behavior('phabricator-gesture-example', function(config) {
|
||||
cxt.stroke();
|
||||
}
|
||||
|
||||
for (var ii = 0; ii < current.length; ii++) {
|
||||
var s = current[ii];
|
||||
for (ii = 0; ii < current.length; ii++) {
|
||||
s = current[ii];
|
||||
cxt.strokeStyle = 'rgba(255, 0, 0, 1)';
|
||||
cxt.beginPath();
|
||||
cxt.moveTo(s[0], s[1]);
|
||||
|
||||
Reference in New Issue
Block a user