1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +01:00

Minor, don't minify raphael.js since it doesn't survive it

Auditors: btrahan
This commit is contained in:
epriestley 2012-04-02 12:07:59 -07:00
parent c580775d58
commit 84c40a732e
5 changed files with 12 additions and 3 deletions

View file

@ -1,5 +1,6 @@
/** /**
* @provides raphael-g * @provides raphael-g
* @do-not-minify
*/ */
/*! /*!
* g.Raphael 0.5 - Charting library, based on Raphaël * g.Raphael 0.5 - Charting library, based on Raphaël

View file

@ -1,5 +1,6 @@
/** /**
* @provides raphael-g-line * @provides raphael-g-line
* @do-not-minify
*/ */
/*! /*!
* g.Raphael 0.5 - Charting library, based on Raphaël * g.Raphael 0.5 - Charting library, based on Raphaël

View file

@ -1,5 +1,6 @@
/** /**
* @provides raphael-core * @provides raphael-core
* @do-not-minify
*/ */
// ┌─────────────────────────────────────────────────────────────────────┐ \\ // ┌─────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.0.1 - JavaScript Vector Library │ \\ // │ Raphaël 2.0.1 - JavaScript Vector Library │ \\

View file

@ -1970,7 +1970,7 @@ celerity_register_resource_map(array(
), ),
'raphael-core' => 'raphael-core' =>
array( array(
'uri' => '/res/bae05d27/rsrc/js/raphael/raphael.js', 'uri' => '/res/3f48575a/rsrc/js/raphael/raphael.js',
'type' => 'js', 'type' => 'js',
'requires' => 'requires' =>
array( array(
@ -1979,7 +1979,7 @@ celerity_register_resource_map(array(
), ),
'raphael-g' => 'raphael-g' =>
array( array(
'uri' => '/res/8bbdbea8/rsrc/js/raphael/g.raphael.js', 'uri' => '/res/b07e5245/rsrc/js/raphael/g.raphael.js',
'type' => 'js', 'type' => 'js',
'requires' => 'requires' =>
array( array(
@ -1988,7 +1988,7 @@ celerity_register_resource_map(array(
), ),
'raphael-g-line' => 'raphael-g-line' =>
array( array(
'uri' => '/res/54504ae4/rsrc/js/raphael/g.raphael.line.js', 'uri' => '/res/a59c8556/rsrc/js/raphael/g.raphael.line.js',
'type' => 'js', 'type' => 'js',
'requires' => 'requires' =>
array( array(

View file

@ -107,6 +107,12 @@ final class CelerityResourceController extends AphrontController {
return $data; return $data;
} }
// Some resources won't survive minification (like Raphael.js), and are
// marked so as not to be minified.
if (strpos($data, '@'.'do-not-minify') !== false) {
return $data;
}
switch ($type) { switch ($type) {
case 'css': case 'css':
// Remove comments. // Remove comments.