luci-base: drive-by fixes
authorPaul Donald <newtwen+github@gmail.com>
Wed, 27 Mar 2024 18:22:03 +0000 (19:22 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Fri, 29 Mar 2024 15:10:06 +0000 (16:10 +0100)
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-base/htdocs/luci-static/resources/form.js

index 81b1054660af5ff929a647ae0fd36f4d9f132ac3..70aad7ee7d07fe8a27f7d8d14c8fe59f7353e4e4 100644 (file)
@@ -1007,14 +1007,14 @@ var CBIAbstractSection = CBIAbstractElement.extend(/** @lends LuCI.form.Abstract
         *
         * @throws {TypeError}
         * Throws a `TypeError` exception in case the passed class value is not a
-        * descendent of `AbstractValue`.
+        * descendant of `AbstractValue`.
         *
         * @returns {LuCI.form.AbstractValue}
         * Returns the instantiated option class instance.
         */
        option: function(cbiClass /*, ... */) {
                if (!CBIAbstractValue.isSubclass(cbiClass))
-                       throw L.error('TypeError', 'Class must be a descendent of CBIAbstractValue');
+                       throw L.error('TypeError', 'Class must be a descendant of CBIAbstractValue');
 
                var obj = cbiClass.instantiate(this.varargs(arguments, 1, this.map, this));
                this.append(obj);
@@ -1044,7 +1044,7 @@ var CBIAbstractSection = CBIAbstractElement.extend(/** @lends LuCI.form.Abstract
         *
         * @throws {TypeError}
         * Throws a `TypeError` exception in case the passed class value is not a
-        * descendent of `AbstractValue`.
+        * descendant of `AbstractValue`.
         *
         * @returns {LuCI.form.AbstractValue}
         * Returns the instantiated option class instance.