You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
elseifCUI.util.isFunction(v.check) andnotv.check.__super__# super is from coffeescript and shows us that we have a "class" here
217
217
CUI.util.assert(CUI.util.isEmpty(v.check.name) orv.check.name=="check", cls, "#{k}.check is \"#{v.check.name}\" but has no \"__super__\" method. Use \"extends CUI.Element\" or \"extends CUI.Dummy\" to fix that.", opts: opts, key: k, value: v)
218
218
check=v.check.call(@, value)
@@ -234,7 +234,7 @@ class CUI.Element
234
234
elseifCUI.util.isNull(value) and mandatory
235
235
CUI.util.assert(false, cls, "opts.#{k} is mandatory, but is #{value}.", opts: opts)
CUI.util.assert(CUI.util.isPlainObject(opts), "new #{arguments.callee.caller.name}", "opts needs to be PlainObject but it is #{CUI.util.getObjectClass(opts)}.", opts: opts)
97
-
98
94
if classClass =="Array"
99
95
cn="Array"
100
96
cond= value instanceofArray
@@ -121,7 +117,7 @@ class CUI.util
121
117
ifnot fn
122
118
fn=CUI.util.getObjectClass(@)
123
119
124
-
CUI.util.assert(false, "new #{fn}", "opts.#{variableName} needs to be instance of #{cn} but it is #{CUI.util.getObjectClass(value)}.", opts: opts, value: value, classClass: classClass)
120
+
CUI.util.assert(false, "new #{fn}", "opts.#{variableName} needs to be instance of #{cn} but it is #{CUI.util.getObjectClass(value)}.", value: value, classClass: classClass)
0 commit comments