🎨 shouldUpdate --> needUpdate

This commit is contained in:
Daniel Gasienica 2018-03-02 18:09:21 -05:00
parent 541e0bfb72
commit d6ff5af843

View file

@ -131,9 +131,9 @@
this.reset([]); this.reset([]);
}, },
enable: function() { enable: function() {
var shouldUpdate = !isEnabled; const needUpdate = !isEnabled;
isEnabled = true; isEnabled = true;
if (shouldUpdate) { if (needUpdate) {
this.update(); this.update();
} }
}, },