We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d3cf9a commit f44d363Copy full SHA for f44d363
1 file changed
ArrayDiffElement.js
@@ -9,15 +9,15 @@
9
}
10
11
ArrayDiffElement.prototype.added = function() {
12
- return oldIndex === undefined;
+ return this.oldIndex === undefined;
13
};
14
15
ArrayDiffElement.prototype.removed = function() {
16
- return newIndex === undefined;
+ return this.newIndex === undefined;
17
18
19
ArrayDiffElement.prototype.common = function() {
20
- return oldIndex !== undefined && newIndex !== undefined;
+ return this.oldIndex !== undefined && this.newIndex !== undefined;
21
22
23
return ArrayDiffElement;
0 commit comments