enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

Wrong code at documentation page #67

Closed ahsan-gill closed 11 years ago

ahsan-gill commented 11 years ago

Hello,

To close all open OpenTip instances, the code provided on documentation page do not work.

Here it is: for(var i = 0; i < Opentip.tips; i ++) { Opentip.tips[i].hide(); }

Whereas it should be: for(var i = 0; i < Opentip.tips.length; i ++) { Opentip.tips[i].hide(); }

The above code closes all open tip instances. Thanks

enyo commented 11 years ago

Thank you! Will fix soon.

sandervm commented 11 years ago

Just ran into the same thing :)