Skip to content

Commit 438481e

Browse files
committed
Changed applyDiff.isConflict getter to applyDiff.isConflict() getter method (to make it work in IE8)
1 parent 09059e7 commit 438481e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
applyDiff: { value: applyDiff, enumerable: true },
307307
applyChange: { value: applyChange, enumerable: true },
308308
revertChange: { value: revertChange, enumerable: true },
309-
isConflict: { get: function () { return 'undefined' !== typeof conflict; }, enumerable: true },
309+
isConflict: { value: function () { return 'undefined' !== typeof conflict; }, enumerable: true },
310310
noConflict: {
311311
value: function () {
312312
if (conflictResolution) {

test/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ describe('deep-diff', function () {
147147
it('#isConflict reports conflict in the global namespace for `DeepDiff`', function () {
148148
// the browser test harness sets up a conflict.
149149
if (executingInBrowser) {
150-
expect(DeepDiff.isConflict).to.be.ok();
150+
expect(DeepDiff.isConflict()).to.be.ok();
151151
}
152152
});
153153

154154
it('#noConflict restores prior definition for the global `DeepDiff`', function () {
155155
// the browser test harness sets up a conflict.
156156
if (executingInBrowser) {
157-
expect(DeepDiff.isConflict).to.be.ok();
157+
expect(DeepDiff.isConflict()).to.be.ok();
158158
var another = DeepDiff.noConflict();
159159
expect(another).to.be(deep);
160160
expect(DeepDiff).to.be(DeepDiffConflict);

0 commit comments

Comments
 (0)