Update to Farbtastic 1.2.

5.x
Steven Wittens 2007-01-10 07:03:48 +00:00
parent 50535ab339
commit f4c82fa91b
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
// $Id$
// Farbtastic 1.1
// Farbtastic 1.2
jQuery.fn.farbtastic = function (callback) {
$.farbtastic(this, callback);
@ -47,6 +47,9 @@ jQuery._farbtastic = function (container, callback) {
$(fb.callback).unbind('keyup', fb.updateValue);
}
// Reset color
fb.color = null;
// Bind callback or elements
if (typeof callback == 'function') {
fb.callback = callback;