Skip to content

Commit

Permalink
Toying with jshint continues
Browse files Browse the repository at this point in the history
  • Loading branch information
einars committed Mar 18, 2013
1 parent ed0fa77 commit 3f6ac6c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion beautify-css.js
Expand Up @@ -216,6 +216,6 @@ function css_beautify(source_text, options) {
}


if (exports !== undefined) {
if (typeof exports !== 'undefined') {
exports.css_beautify = css_beautify;
}
2 changes: 1 addition & 1 deletion beautify-html.js
Expand Up @@ -580,6 +580,6 @@ function style_html(html_source, options) {

// Add support for CommonJS. Just put this file somewhere on your require.paths
// and you will be able to `var html_beautify = require("beautify").html_beautify`.
if (exports !== undefined) {
if (typeof exports !== 'undefined') {
exports.html_beautify = style_html;
}
4 changes: 2 additions & 2 deletions unpackers/javascriptobfuscator_unpacker.js
Expand Up @@ -21,7 +21,7 @@ var JavascriptObfuscator = {
if (matches) {
var var_name = matches[1];
var strings = JavascriptObfuscator._smart_split(matches[2]);
var str = str.substring(matches[0].length);
str = str.substring(matches[0].length);
for (var k in strings) {
str = str.replace(new RegExp(var_name + '\\[' + k + '\\]', 'g'),
JavascriptObfuscator._fix_quotes(JavascriptObfuscator._unescape(strings[k])));
Expand Down Expand Up @@ -100,4 +100,4 @@ var JavascriptObfuscator = {
}


}
};
2 changes: 1 addition & 1 deletion unpackers/myobfuscate_unpacker.js
Expand Up @@ -78,4 +78,4 @@ var MyObfuscate = {
}


}
};
4 changes: 2 additions & 2 deletions unpackers/p_a_c_k_e_r_unpacker.js
Expand Up @@ -34,7 +34,7 @@ var P_A_C_K_E_R = {
var unpacked_source = '';
if (P_A_C_K_E_R.detect(str)) {
try {
eval('unpacked_source = ' + str.substring(4) + ';')
eval('unpacked_source = ' + str.substring(4) + ';');
if (typeof unpacked_source == 'string' && unpacked_source) {
str = unpacked_source;
}
Expand Down Expand Up @@ -67,4 +67,4 @@ var P_A_C_K_E_R = {
}


}
};

0 comments on commit 3f6ac6c

Please sign in to comment.