|
53 | 53 |
|
54 | 54 | // set CSS transition event type |
55 | 55 | if ( $.support.transition ) { |
56 | | - transitionEnd = "TransitionEnd" |
57 | | - if ( $.browser.webkit ) { |
58 | | - transitionEnd = "webkitTransitionEnd" |
59 | | - } else if ( $.browser.mozilla ) { |
60 | | - transitionEnd = "transitionend" |
61 | | - } else if ( $.browser.opera ) { |
62 | | - transitionEnd = "oTransitionEnd" |
63 | | - } |
| 56 | + transitionEnd = $.support.transition.end; |
64 | 57 | } |
65 | 58 |
|
66 | 59 | }) |
|
188 | 181 | } |
189 | 182 |
|
190 | 183 | if (surplusRight > 0) { |
191 | | - $arrow = $tip.find(".twipsy-arrow"); |
| 184 | + $arrow = $tip.find(".tooltip-arrow"); |
192 | 185 | if (! this.defaultMargin) { |
193 | 186 | this.defaultMargin = parseInt($arrow.css("margin-left"), 10); |
194 | 187 | } |
|
201 | 194 |
|
202 | 195 | , setContent: function () { |
203 | 196 | var $tip = this.tip() |
204 | | - $tip.find('.twipsy-inner')[this.options.html ? 'html' : 'text'](this.getTitle()) |
205 | | - $tip[0].className = 'twipsy' |
| 197 | + $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](this.getTitle()) |
| 198 | + $tip[0].className = 'tooltip' |
206 | 199 | } |
207 | 200 |
|
208 | 201 | , hide: function() { |
|
255 | 248 | } |
256 | 249 |
|
257 | 250 | , tip: function() { |
258 | | - return this.$tip = this.$tip || $('<div class="twipsy" />').html(this.options.template) |
| 251 | + return this.$tip = this.$tip || $('<div class="tooltip" />').html(this.options.template) |
259 | 252 | } |
260 | 253 |
|
261 | 254 | , validate: function() { |
|
388 | 381 | , offset: 0 |
389 | 382 | , title: 'title' |
390 | 383 | , trigger: 'hover' |
391 | | - , template: '<div class="twipsy-arrow"></div><div class="twipsy-inner"></div>' |
| 384 | + , template: '<div class="tooltip-arrow"></div><div class="tooltip-inner"></div>' |
392 | 385 | } |
393 | 386 |
|
394 | 387 | $.fn.twipsy.rejectAttrOptions = [ 'title' ] |
|
0 commit comments