Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Created November 30, 2018 12:15
Show Gist options
  • Save unlocomqx/12bf2369e86a5d490f06d4111e978f06 to your computer and use it in GitHub Desktop.
Save unlocomqx/12bf2369e86a5d490f06d4111e978f06 to your computer and use it in GitHub Desktop.
Index: views/js/front/modules/custom-text.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- views/js/front/modules/custom-text.js (revision 643b48eeb49ae38e07453e3300d0a1bdc176365e)
+++ views/js/front/modules/custom-text.js (revision 0422aa7a43934064811730eb6fae4edfa62161da)
@@ -373,6 +373,7 @@
'data-text': values.text
})
.hide()
+ .data('curve', values.curve)
.off('load').on('load', function () {
ctdTools.hideLoader();
var $item = $(this);
Index: views/js/front/modules/text-size.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- views/js/front/modules/text-size.js (revision 643b48eeb49ae38e07453e3300d0a1bdc176365e)
+++ views/js/front/modules/text-size.js (revision 0422aa7a43934064811730eb6fae4edfa62161da)
@@ -248,8 +248,10 @@
// check if previous & new element have the same texts
var previous_text_value = previous_text.data('text');
+ var previous_text_curve = previous_text.data('curve');
var new_text_value = element.data('text');
- if (previous_text_value != new_text_value) {
+ var new_text_curve = element.data('curve');
+ if (previous_text_value !== new_text_value || +previous_text_curve !== +new_text_curve) {
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment