From 0ecb5edba8240c38e513bc10ba558041ec275f3a Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Wed, 27 Mar 2024 19:22:03 +0100 Subject: [PATCH] luci-base: drive-by fixes Signed-off-by: Paul Donald --- modules/luci-base/htdocs/luci-static/resources/form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 81b1054660..70aad7ee7d 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -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. -- 2.30.2