View Full Version : CompositeElement.add Error ??

4 Apr 2007, 1:44 PM
Hi there,

First time poster ( feels like I'm on a radio show :D )

First off, just wanted to say a BIG thank you to Mr. Jack Slocum for creating this fantastic library. It has re-ignited my passion for programming and learning.

I know there have been a few people complaining that the documentation is not complete and out of date but to me there is actually no better way to understand how something works than actually going through the source and figuring it out for yourself.

Which is how I came across this section of code inside of CompositeElement.js

add : function(els){
if(typeof els == "string"){
}else if(els.length !== undefined){
return this;

I'm sure this is a bug as string is undefined and it should be passing els instead.

Not sure if this has already been reported, hope it helps.

Again, a HUGE thank you for providing the world with a first class library.


4 Apr 2007, 3:53 PM
I should have been drinking redbull when I coded that.