setIsVisible not functioning properly

Hello,

I have just started using cocos2d.

for(var object in this.objects) {
this.objects[object].setIsVisible(false);
}
NOTE: this.objects is a array of objects with some attributes and a sprite.

I keep getting an error that the object doesn’t have setIsVisible property.

Can someone point me in the right direction?
Thanks!
-Animish

setIsVisible is rename to setVisible in new version.

you can reference new API Doc from this:
http://www.cocos2d-x.org/reference/html5-js/index.html

Alright!
Thanks a lot!