Same name in other branches
- 5.0.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock()
- 6.0.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock()
- 7.x-2.x advagg_js_compress/jshrink.inc \JShrink\Minifier::unlock()
- 8.x-2.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock()
- 8.x-4.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock()
Replace "locks" with the original characters
Paramètres
string $js The string to unlock:
Return value
bool
Fichier
-
advagg_js_minify/
jshrink.inc, line 616
Classe
- Minifier
- Minifier
Namespace
JShrinkCode
protected function unlock($js) {
if (empty($this->locks)) {
return $js;
}
foreach ($this->locks as $lock => $replacement) {
$js = str_replace($lock, $replacement, $js);
}
return $js;
}