Permalink
Browse files

Added panel variable for consistency

  • Loading branch information...
1 parent 0e5f0d5 commit d64ab231bb488c23e1e16e2addee3e3b5c3e6ce1 @claviska committed Jan 14, 2014
Showing with 5 additions and 5 deletions.
  1. +4 −4 jquery.minicolors.js
  2. +1 −1 jquery.minicolors.min.js
View
@@ -228,12 +228,13 @@ if(jQuery) (function($) {
function hide() {
$('.minicolors-focus').each( function() {
-
+
var minicolors = $(this),
input = minicolors.find('.minicolors-input'),
+ panel = minicolors.find('.minicolors-panel'),
settings = input.data('minicolors-settings');
-
- minicolors.find('.minicolors-panel').fadeOut(settings.hideSpeed, function() {
+
+ panel.fadeOut(settings.hideSpeed, function() {
if( settings.hide ) settings.hide.call(input.get(0));
minicolors.removeClass('minicolors-focus');
});
@@ -254,7 +255,6 @@ if(jQuery) (function($) {
duration = animate ? settings.animationSpeed : 0,
wx, wy, r, phi;
-
// Touch support
if( event.originalEvent.changedTouches ) {
x = event.originalEvent.changedTouches[0].pageX - offsetX;
Oops, something went wrong.

0 comments on commit d64ab23

Please sign in to comment.