Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Toying with jshint continues

  • Loading branch information...
commit 3f6ac6c82c585dab9ad6a6d3bd6784262402da61 1 parent ed0fa77
@einars einars authored
View
2  beautify-css.js
@@ -216,6 +216,6 @@ function css_beautify(source_text, options) {
}
-if (exports !== undefined) {
+if (typeof exports !== 'undefined') {
exports.css_beautify = css_beautify;
}
View
2  beautify-html.js
@@ -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;
}
View
4 unpackers/javascriptobfuscator_unpacker.js
@@ -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])));
@@ -100,4 +100,4 @@ var JavascriptObfuscator = {
}
-}
+};
View
2  unpackers/myobfuscate_unpacker.js
@@ -78,4 +78,4 @@ var MyObfuscate = {
}
-}
+};
View
4 unpackers/p_a_c_k_e_r_unpacker.js
@@ -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;
}
@@ -67,4 +67,4 @@ var P_A_C_K_E_R = {
}
-}
+};

0 comments on commit 3f6ac6c

Please sign in to comment.
Something went wrong with that request. Please try again.