Commit dc79d217 by niskac

Minor improvements to the BootTwipsy widget.

parent 9de623ad
......@@ -13,7 +13,10 @@
* @type Object
*/
var defaults = {
placement: 'above'
placement: 'above',
inEvent: 'mouseenter',
outEvent: 'mouseleave',
live: false
};
/**
......@@ -42,11 +45,13 @@
visible: false
});
element.bind( 'mouseover', function( event ) {
var fn = settings.live ? 'live' : 'bind';
element.fn( settings.inEvent, function( event ) {
methods.show(element);
});
element.bind( 'mouseout', function( event ) {
element.fn( settings.outEvent, function( event ) {
methods.hide(element);
});
}
......
......@@ -12,7 +12,7 @@ class BootTwipsy extends BootWidget
/**
* @property string the CSS selector to use for selecting the twipsy elements.
*/
public $selector = '.twipsy';
public $selector = 'a[title]';
/**
* Initializes the widget.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment