chore(zip) add jshint config

This commit is contained in:
coderaiser 2014-03-31 08:49:31 -04:00
parent db35b0cc43
commit c79ef4efeb

View file

@ -3,9 +3,11 @@ var Util, Zip, pako;
(function () {
'use strict';
/*jshint nonstandard:false */
var UTF8 = {
unescape: typeof unescape === 'function' ? unescape : decode
};
/*jshint nonstandard:true */
Zip = new ZipProto();
@ -44,6 +46,7 @@ var Util, Zip, pako;
}
}
/* jshint bitwise:false */
/* unescape polyfill
* http://unixpapa.com/js/querystring.html
*/
@ -51,8 +54,8 @@ var Util, Zip, pako;
s = s.replace(/%([EF][0-9A-F])%([89AB][0-9A-F])%([89AB][0-9A-F])/gi,
function(code,hex1,hex2,hex3) {
var n, n3,
n1 = parseInt(hex1,16)-0xE0;
n2 = parseInt(hex2,16)-0x80;
n1 = parseInt(hex1,16) - 0xE0,
n2 = parseInt(hex2,16) - 0x80;
if (n1 === 0 && n2 < 32)
return code;
@ -85,4 +88,5 @@ var Util, Zip, pako;
return s;
}
/* jshint bitwise:true */
})();