diff --git a/common/bindings/spinbuttons.xml b/common/bindings/spinbuttons.xml index f60de6eefd..8866818e29 100644 --- a/common/bindings/spinbuttons.xml +++ b/common/bindings/spinbuttons.xml @@ -86,7 +86,7 @@ if (this.hasAttribute("on" + eventname)) { var fn = new Function("event", this.getAttribute("on" + eventname)); - if (fn.call(this, event) == false) + if (!fn.call(this, event)) cancel = true; }