Browse Source

Added missing helper function documentation in Template class.

Aleksander Nowodzinski 9 years ago
parent
commit
2674d569e9
1 changed files with 4 additions and 1 deletions
  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;
 }