Skip to content

Commit

Permalink
Added event type as a custom parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jun 15, 2010
1 parent 7b34aaf commit 6c66ca1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/javascripts/jquery-icon-animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
$.fn.animateIconPanel = function(options) {
var opts = $.extend({}, $.fn.animateIconPanel.defaults, options);

$(this).unbind('dbclick');
$(this).unbind(opts.eventType);

$(this).bind('dblclick', function(event) {
$(this).bind(opts.eventType, function(event) {
var $iconsWrapper = $('ul', this),
$openLink = $iconsWrapper.parent().find('>span'),
$panel = $(this);
Expand Down Expand Up @@ -59,6 +59,7 @@ $.fn.animateIconPanel = function(options) {
// default options
$.fn.animateIconPanel.defaults = {
speed:300,
eventType: 'dblclick',
panelTextClass: 'view-panel ui-state-highlight',
panelClass: 'icons ui-widget ui-widget-content ui-corner-all',
mouseoutBgColour: '#89A407',
Expand Down

0 comments on commit 6c66ca1

Please sign in to comment.