Index: branches/resourceloader/phase3/includes/ResourceLoader.php |
— | — | @@ -114,6 +114,19 @@ |
115 | 115 | return $retval; |
116 | 116 | } |
117 | 117 | |
| 118 | + public function getLoaderJS() { |
| 119 | + $retval = ''; |
| 120 | + foreach ( self::$modules as $name => $module ) { |
| 121 | + // TODO: file_get_contents() errors? |
| 122 | + $retval .= file_get_contents( $module['loader'] ); |
| 123 | + } |
| 124 | + // FIXME: Duplicated; centralize in doJSTransforms() or something? |
| 125 | + if ( $this->useJSMin ) { |
| 126 | + $retval = $this->jsMin( $retval ); |
| 127 | + } |
| 128 | + return $retval; |
| 129 | + } |
| 130 | + |
118 | 131 | public function jsMin( $js ) { |
119 | 132 | // TODO: Implement |
120 | 133 | return $js; |