diff options
author | Paul Donald <newtwen+github@gmail.com> | 2024-03-27 19:22:03 +0100 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-03-29 16:10:06 +0100 |
commit | 0ecb5edba8240c38e513bc10ba558041ec275f3a (patch) | |
tree | 7efdee01a52910825ef16cef3ed39079f0af62cc | |
parent | bd2b2ec3402d5b28446815c872703b6763e00732 (diff) |
luci-base: drive-by fixes
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/form.js | 6 |
1 files 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. |