From ebef028096fbf59da4852081dace1446142d0652 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Sun, 22 Jul 2018 18:52:18 -0500 Subject: [PATCH] SFJS 0.3.4 --- .../app/models/noteHistoryEntry.js | 19 ------------------- package.json | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/app/assets/javascripts/app/models/noteHistoryEntry.js b/app/assets/javascripts/app/models/noteHistoryEntry.js index 922388b86..38414d88f 100644 --- a/app/assets/javascripts/app/models/noteHistoryEntry.js +++ b/app/assets/javascripts/app/models/noteHistoryEntry.js @@ -1,28 +1,9 @@ class NoteHistoryEntry extends SFItemHistoryEntry { - setPreviousEntry(previousEntry) { - super.setPreviousEntry(previousEntry); - if(previousEntry) { - this.textCharDiffLength = this.item.content.text.length - previousEntry.item.content.text.length; - } else { - this.textCharDiffLength = this.item.content.text.length; - } - } - previewTitle() { return this.item.updated_at.toLocaleString(); } - operationVector() { - if(!this.hasPreviousEntry || this.textCharDiffLength == 0) { - return 0; - } else if(this.textCharDiffLength < 0) { - return -1; - } else { - return 1; - } - } - previewSubTitle() { if(!this.hasPreviousEntry) { return `${this.textCharDiffLength} characters loaded` diff --git a/package.json b/package.json index 8b1cbaa48..b174e55b0 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "karma-jasmine": "^1.1.0", "karma-phantomjs-launcher": "^1.0.2", "sn-stylekit": "1.0.15", - "standard-file-js": "0.3.3", + "standard-file-js": "0.3.4", "sn-models": "0.1.1", "connect": "^3.6.6", "mocha": "^5.2.0",