I think the following changes should be made
* Check if instance.ajaxing exists. I got an error message in the JS console that suggests that this is not always the case.
* Act on two hints shown by phpstorm: To use the === comparison operator and to wrap the body of for ... in loop in a hasOwnProperty condition.

CommentFileSizeAuthor
#2 2907983-improve-js-1.patch1.13 KBcspitzlay

Comments

cspitzlay created an issue. See original summary.

cspitzlay’s picture

StatusFileSize
new1.13 KB
cspitzlay’s picture

Status: Active » Needs review

hchonov’s picture

Status: Needs review » Fixed

Thank you. I had to adjust it slightly, but the changes you've suggested are now in.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.