Skip to content

Commit 022ecee

Browse files
authored
Update jquery.enjoyhint.js
The variables are undefined if screen <640
1 parent 4bb3f24 commit 022ecee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/jquery.enjoyhint.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,15 +602,16 @@ CanvasRenderingContext2D.prototype.roundRect = function (x, y, w, h, r) {
602602

603603
that.renderArrow = function (data) {
604604

605-
if (window.innerWidth >= 640) {
606-
607605
var x_from = data.x_from || 0;
608606
var y_from = data.y_from || 0;
609607
var x_to = data.x_to || 0;
610608
var y_to = data.y_to || 0;
611609
var by_top_side = data.by_top_side;
612610
var control_point_x = 0;
613611
var control_point_y = 0;
612+
613+
if (window.innerWidth >= 640) {
614+
614615
if (by_top_side) {
615616

616617
if (y_from >= y_to) {
@@ -1149,4 +1150,4 @@ CanvasRenderingContext2D.prototype.roundRect = function (x, y, w, h, r) {
11491150

11501151
return this;
11511152
};
1152-
})(window.jQuery);
1153+
})(window.jQuery);

0 commit comments

Comments
 (0)