Skip to content

Commit

Permalink
clarify README
Browse files Browse the repository at this point in the history
* default settings can be done before the document
  ready event
* tagcloud() needs to be called on a selector
  matching each item of the tag cloud
  • Loading branch information
Martin Rehfeld committed Feb 24, 2011
1 parent 01f5f6b commit f6a6555
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Expand Up @@ -12,11 +12,13 @@ Usage

and then:

$(document).ready(function(){
$.fn.tagcloud.defaults = {
size: {start: 14, end: 18, unit: "pt"},
color: {start: '#cde', end: '#f52'}
};
$.fn.tagcloud.defaults = {
size: {start: 14, end: 18, unit: 'pt'},
color: {start: '#cde', end: '#f52'}
};

$(function () {
$('#whatever a').tagcloud();
});

Demo
Expand Down

0 comments on commit f6a6555

Please sign in to comment.