Refactor code and update readme
This commit is contained in:
parent
9b726e6706
commit
c56b952d79
30
md5.js
30
md5.js
@ -14,30 +14,30 @@
|
|||||||
if (!b.hasOwnProperty(q)) b[q] = a[q]
|
if (!b.hasOwnProperty(q)) b[q] = a[q]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var z = function () {
|
// var z = function () {
|
||||||
// checkEnvironment
|
// // checkEnvironment
|
||||||
if (typeof navigator !== "undefined" && navigator.userAgent.includes("Chrome/")) {
|
// if (typeof navigator !== "undefined" && navigator.userAgent.includes("Chrome/")) {
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (typeof version === "function" && version.length === 0 && /^\d+\.\d+\.\d+\.\d+$/.test(version())) {
|
// if (typeof version === "function" && version.length === 0 && /^\d+\.\d+\.\d+\.\d+$/.test(version())) {
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return false;
|
// return false;
|
||||||
}()
|
// }()
|
||||||
|
|
||||||
function inherit(a, b) {
|
function inherit(a, b) {
|
||||||
a.prototype.constructor = a
|
a.prototype.constructor = a
|
||||||
a.prototype["$i" + a.name] = a
|
a.prototype["$i" + a.name] = a
|
||||||
if (b != null) {
|
if (b != null) {
|
||||||
if (z) {
|
// if (z) {
|
||||||
a.prototype.__proto__ = b.prototype
|
a.prototype.__proto__ = b.prototype
|
||||||
return
|
return
|
||||||
}
|
// }
|
||||||
var s = Object.create(b.prototype)
|
// var s = Object.create(b.prototype)
|
||||||
copyProperties(a.prototype, s)
|
// copyProperties(a.prototype, s)
|
||||||
a.prototype = s
|
// a.prototype = s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user