lucaong / jQCloud

jQuery plugin for drawing neat word clouds that actually look like clouds
MIT License
646 stars 293 forks source link

When context is defined JQCloud is not working. #34

Closed margaritari closed 11 years ago

margaritari commented 11 years ago

When jqcloud is used as: $("#anId",context).jQCloud(word_list); it is not working, as in lines 156 and 188 the "document.getElementById()" is used.

Important issue when working on browser extension instead of a website.

lucaong commented 11 years ago

Correct, getElementById was used for performance reasons, but since performance benefit is marginal and it causes this bug, new version 1.0.3 does not make use of it.

Thank you!