Skip to content

Commit

Permalink
Added a super class Tooltips as a shorthand for CSS selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
okonet committed Jul 18, 2008
1 parent c32282a commit 2419d2c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tooltips.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
// Tooltip Object
// Tooltips Class
// A superclass to work with simple CSS selectors
var Tooltips = Class.create();
Tooltips.prototype = {
initialize: function(selector, options) {
var tooltips = $$(selector);
tooltips.each( function(tooltip) {
new Tooltip(tooltip, options);
});
}
};
// Tooltip Class
var Tooltip = Class.create();
Tooltip.prototype = {
initialize: function(el, options) {
Expand Down

0 comments on commit 2419d2c

Please sign in to comment.