Explorar el Código

Added missing helper function documentation in Template class.

Aleksander Nowodzinski hace 9 años
padre
commit
2674d569e9
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      packages/ckeditor5-ui/src/template.js

+ 4 - 1
packages/ckeditor5-ui/src/template.js

@@ -966,8 +966,11 @@ function extendTemplateDefinition( def, extDef ) {
 	}
 }
 
+// Checks if value is "falsy".
+// Note: 0 (Number) is not "falsy" in this context.
+//
+// @param {*} value Value to be checked.
 function isFalsy( value ) {
-	// Note 0 is not falsy in this context.
 	return !value && value !== 0;
 }