|
1 | 1 | /*!
|
2 |
| - * jQuery clueTip plugin v1.1 |
| 2 | + * jQuery clueTip plugin v1.1.1 |
3 | 3 | *
|
4 |
| - * Date: 2011-01-15 |
| 4 | + * Date: Fri Mar 25 10:06:31 2011 EDT |
5 | 5 | * Requires: jQuery v1.3+
|
6 | 6 | *
|
7 | 7 | * Copyright 2010, Karl Swedberg
|
|
18 | 18 |
|
19 | 19 |
|
20 | 20 | $.cluetip = {
|
21 |
| - version: '1.1', |
| 21 | + version: '1.1.1', |
22 | 22 |
|
23 | 23 | /* clueTip setup
|
24 | 24 | * the setup options are applied each time .cluetip() is called,
|
|
171 | 171 |
|
172 | 172 |
|
173 | 173 | this.each(function(index) {
|
174 |
| - var link = this, $link = $(this); |
175 |
| - |
176 |
| - // support metadata plugin (v1.0 and 2.0) |
177 |
| - var opts = $.extend(true, {}, options, $.metadata ? $link.metadata() : $.meta ? $link.data() : {}); |
178 |
| - |
179 |
| - |
180 |
| - // start out with no contents (for ajax activation) |
181 |
| - var cluetipContents = false; |
| 174 | + var link = this, |
| 175 | + $link = $(this), |
| 176 | + // support metadata plugin (v1.0 and 2.0) |
| 177 | + opts = $.extend(true, {}, options, $.metadata ? $link.metadata() : $.meta ? $link.data() : {}), |
| 178 | + // start out with no contents (for ajax activation) |
| 179 | + cluetipContents = false, |
| 180 | + isActive = false, |
| 181 | + closeOnDelay = 0, |
| 182 | + tipAttribute = $link.attr(opts.attribute), |
| 183 | + ctClass = opts.cluetipClass; |
182 | 184 |
|
183 | 185 | cluezIndex = +opts.cluezIndex;
|
184 |
| - var isActive = false, closeOnDelay = 0; |
| 186 | + $link.data('cluetip', {title: link.title, zIndex: cluezIndex}); |
185 | 187 |
|
186 |
| - var tipAttribute = $link.attr(opts.attribute), ctClass = opts.cluetipClass; |
187 | 188 | if (!tipAttribute && !opts.splitTitle && !js) {
|
188 | 189 | return true;
|
189 | 190 | }
|
|
0 commit comments