hay / stapes

the Javascript MVC microframework that does just enough
http://hay.github.io/stapes
MIT License
443 stars 54 forks source link

Tooltip Docs & IE #27

Closed josher19 closed 11 years ago

josher19 commented 11 years ago

Follow up to #25

Here's an example of inline documentation using CSS Tooltips: http://josher19.github.com/stapes/#m-mixinEvents

Let me know what you think.

I think your app.js code might have some 'issues' regarding dom traversal on older versions of IE:

nodes = Array.prototype.slice.call(nodes, 0);
yocontra commented 11 years ago

I don't see anything different from the normal documentation on your page. Chrome 23.0.1271.97

josher19 commented 11 years ago

Okay, updated to use code recommended by ccampbell/rainbow#93

Tooltip code from http://www.frequency-decoder.com/demo/css-tooltips/

After you flush your cache, you should see a CSS tooltip when you hover over documented functions, like shown below:

Screenshot-Stapes js - a really tiny Javascript MVC microframework - Chromium

hay commented 11 years ago

Thanks Josher, looks nice! Would it be possible to make a pull request to the current codebase? Of course, i'll add a credit on the website.