Permalink
Browse files

update documentation to reflect AMD support

  • Loading branch information...
1 parent 7e77fe4 commit af1a41cfc32cb36417fd739261a6e298e95c3e8c @eduardo-matos eduardo-matos committed Jan 5, 2013
Showing with 23 additions and 0 deletions.
  1. +23 −0 README.md
View
23 README.md
@@ -39,6 +39,29 @@ Tinycon.setOptions({
});
```
+### AMD support
+
+Tinycon can also be used as an asynchronous module.
+
+```javascript
+require([
+ 'tinycon.js'
+], function (T) {
+
+ T.setOptions({
+ width: 7,
+ height: 9,
+ font: '10px arial',
+ colour: '#ffffff',
+ background: '#549A2F',
+ fallback: true
+ });
+
+ T.setBubble(7);
+
+});
+```
+
## Browser Support
Tinycon has been tested to work completely in the following browsers. Older versions may be supported, but haven't been tested:

0 comments on commit af1a41c

Please sign in to comment.