Skip to content
Snippets Groups Projects
Commit 543da850 authored by Arkerthan's avatar Arkerthan
Browse files

remove 2 unneded clone calls on passage change

parent 48575e53
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -344,7 +344,7 @@ index aa5c2f2..15d4221 100644
return frag;
}
diff --git a/src/state.js b/src/state.js
index 5ce7c55..3ae79be 100644
index 5ce7c55..69a73a3 100644
--- a/src/state.js
+++ b/src/state.js
@@ -104,7 +104,7 @@ var State = (() => { // eslint-disable-line no-unused-vars, no-var
......@@ -356,6 +356,26 @@ index 5ce7c55..3ae79be 100644
}
if (_prng !== null) {
@@ -224,8 +224,8 @@ var State = (() => { // eslint-disable-line no-unused-vars, no-var
*/
function momentCreate(title, variables) {
return {
- title : title == null ? '' : String(title), // lazy equality for null
- variables : variables == null ? {} : clone(variables) // lazy equality for null
+ title : title == null ? '' : String(title), // lazy equality for null
+ variables : variables == null ? {} : variables // lazy equality for null
};
}
@@ -510,7 +510,7 @@ var State = (() => { // eslint-disable-line no-unused-vars, no-var
return [];
}
- const delta = [clone(historyArr[0])];
+ const delta = [historyArr[0]];
for (let i = 1, iend = historyArr.length; i < iend; ++i) {
delta.push(Diff.diff(historyArr[i - 1], historyArr[i]));
diff --git a/src/ui.js b/src/ui.js
index 44fb8fa..fecf8e8 100644
--- a/src/ui.js
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment