Prevent usage of javascript URLs
Prefer RegExp#test() over String#match()
Default parameters should be last
AES with ECB mode is not suitable for encrypting large amount of repetitive data

|
@@ -34,14 +34,10 @@ if ([1,2].splice(0).length != 2) {
|
|
|
34
34
|
}()) {//IE 6/7
|
|
35
35
|
var array_splice = Array.prototype.splice;
|
|
36
36
|
Array.prototype.splice = function(start, deleteCount) {
|
|
37
|
-
if (!arguments.length) {
|
|
38
|
-
return [];
|
|
39
|
-
} else {
|
|
40
|
-
|
|
37
|
+
return !arguments.length ? [] : array_splice.apply(this, [
|
|
41
38
|
start === void 0 ? 0 : start,
|
|
42
39
|
deleteCount === void 0 ? (this.length - start) : deleteCount
|
|
43
|
-
].concat(slice.call(arguments, 2)))
|
|
40
|
+
].concat(slice.call(arguments, 2)));
|
|
44
|
-
}
|
|
45
41
|
};
|
|
46
42
|
} else {//IE8
|
|
47
43
|
Array.prototype.splice = function(pos, removeCount){
|