Closed clubajax closed 7 years ago
It should be:
dcl(null, {constructor:function(){}});
In general it sounds like a good candidate for debug.js, which was specifically created to keep all useful debugging facilities separate.
Yes, that would be good. Is there any reason to not create the class I showed? Why do you have to specifically show that you do not have any dependencies?
The reason is simple: it is hard to make a mistake in two-argument function. Bypassing a check for that saves on CPU time, space, and bandwidth.
Addressed in 2.0.
When I try to make a simple class:
I get a very cryptic error, "Uncaught TypeError: Cannot read property 'constructor' of undefined"
One of two things would help here: handle that use case (my preferred), or do a check for the correct arguments to throw a warning and log the object so it's easier to find the offender. I did this on line 19 in mini.js: