liberty-prettydiff
Version:
Language aware code comparison tool for several web based languages. It also beautifies, minifies, and a few other things.
160 lines (159 loc) • 3.88 kB
Plain Text
this.compareRange = function (e) {
var t,
n = e.end,
r = e.start;
return t = this.compare(n.row, n.column),
t == 1
? (t = this.compare(r.row, r.column), t == 1
? 2
: t == 0
? 1
: 0)
: t == -1
? -2
: (t = this.compare(r.row, r.column), t == -1
? -1
: t == 1
? 42
: 0);
}
function () {
return val
? typeofe
? elem
? name
: a
: valspecified
? valvalue
: b
: c;
}
var a = {
"ID" : assertGetIdNotName
? d
: function () {
if (xml) {
return m
? m
? k
: undefined
: p;
}
}
};
function (e) {
c
? b
: e == f.charAt(0)
? L
? t
: execCommand("backspace")
: (K
? F
: Q
? s
: E),
L;
}
terator = function () {
(s
? i[n
? "end"
: "start"]
: e),
s.start && (s[r
? "end"
: "start"]);
var o = i
? i.start.row
: 0,
u = i
? i.end.row
: e.getLength() - 1,
a = n
? function (n) {
p
}
: function (n) {
w
};
return {forEach: a};
};
getOption= function (e) {
return t
? tforwardTo
? thi
: t && t.get
? t
.get
.call(this)
: thi
: o;
}
var a = function () {
x ? y : z
}
function () {
p = q
? w
: r, function () {
t ? y : u
}
}
Array.prototype.splice = function (e, t) {
var n = this.length;
e > 0
? e > n && (e = n)
: e == void 0
? e = 0
: e < 0 && (e = Math.max(n + e, 0)),
e + t < n || (t = n - e);
};
function () {
Object.prototype.__proto__ === null
? b = function () {
return a;
}
: b = function () {
c;
};
}
Array.prototype.indexOf = function (t) {
var n = g && a(this) == "[object String]"
? this.split("")
: F(this),
r = n.length >>> 0;
if (!r) {
return -1;
}
var i = 0;
arguments.length > 1 && (i = H(arguments[1])),
i = i >= 0
? i
: Math.max(0, r + i);
for (; i < r; i += 1) {
if (i in n && n[i] === t) {
return i;
}
}
return -1;
};
Aplice = function () {
return ngth
? gly(this, [
e === void 0
? 0
: e,
t === void 0
? this.length - e
: t
].concat(u.call(arguments, 2)))
: [];
};
function () {
p = q
? w
: r, b, function () {
t ? y : u
}
}