Fixed wrong equality check

`===` changed to `!==` I should take a break.
This commit is contained in:
Kevin Ramharak 2018-01-03 06:04:50 +01:00 committed by GitHub
parent dae48c0ded
commit dac61bf051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,7 +421,7 @@ var lazySave = (function() {
// This will prevent unnececary saving on every change // This will prevent unnececary saving on every change
return function(event) { return function(event) {
// if another timeout was waiting clear that one // if another timeout was waiting clear that one
if(timeout === null) { if(timeout !== null) {
clearTimeout(timeout); clearTimeout(timeout);
} }
// and set a new one // and set a new one