From fbd1464772fbdbbc9416d4c157c7c34510260d9e Mon Sep 17 00:00:00 2001 From: Mottie Date: Fri, 19 Jun 2015 07:49:18 -0500 Subject: [PATCH] Docs: more optimization --- docs/example-widget-editable.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/example-widget-editable.html b/docs/example-widget-editable.html index aa9c0518..ab16f44a 100644 --- a/docs/example-widget-editable.html +++ b/docs/example-widget-editable.html @@ -393,7 +393,7 @@ td.no-edit, span.no-edit { editable_validate : function(txt, orig, columnIndex, $element){ // only allow one word var t = /\s/.test(txt) ? txt.split(/\s/)[0] : txt; - return t ? t : false; + return t || false; } } });