@@ 150-159 (lines=10) @@ | ||
147 | * @return $this |
|
148 | * @author Sang Nguyen |
|
149 | */ |
|
150 | public function removeStylesheets($assets) |
|
151 | { |
|
152 | if (!is_array($assets)) { |
|
153 | $assets = [$assets]; |
|
154 | } |
|
155 | foreach ($assets as $rem) { |
|
156 | unset($this->stylesheets[array_search($rem, $this->stylesheets)]); |
|
157 | } |
|
158 | return $this; |
|
159 | } |
|
160 | ||
161 | /** |
|
162 | * Add Javascript to current module |
|
@@ 168-177 (lines=10) @@ | ||
165 | * @return $this |
|
166 | * @author Sang Nguyen |
|
167 | */ |
|
168 | public function removeJavascript($assets) |
|
169 | { |
|
170 | if (!is_array($assets)) { |
|
171 | $assets = [$assets]; |
|
172 | } |
|
173 | foreach ($assets as $rem) { |
|
174 | unset($this->javascript[array_search($rem, $this->javascript)]); |
|
175 | } |
|
176 | return $this; |
|
177 | } |
|
178 | ||
179 | /** |
|
180 | * Get All Javascript in current module |