0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-29 21:52:22 +01:00

Remove unused variables and make tests pass.

This commit is contained in:
XhmikosR 2014-03-17 07:42:05 +02:00
parent 7d1365ce1c
commit 5057e7c7b8

View File

@ -9,6 +9,7 @@
* details, see http://creativecommons.org/licenses/by/3.0/. * details, see http://creativecommons.org/licenses/by/3.0/.
*/ */
/* global ZeroClipboard */
!function ($) { !function ($) {
'use strict'; 'use strict';
@ -123,7 +124,7 @@
var htmlBridge = $('#global-zeroclipboard-html-bridge') var htmlBridge = $('#global-zeroclipboard-html-bridge')
// Handlers for ZeroClipboard // Handlers for ZeroClipboard
zeroClipboard.on('load', function(client) { zeroClipboard.on('load', function () {
htmlBridge htmlBridge
.data('placement', 'top') .data('placement', 'top')
.attr('title', 'Copy to clipboard') .attr('title', 'Copy to clipboard')
@ -137,7 +138,7 @@
}) })
// Notify copy success and reset tooltip title // Notify copy success and reset tooltip title
zeroClipboard.on('complete', function(client) { zeroClipboard.on('complete', function () {
htmlBridge htmlBridge
.attr('title', 'Copied!') .attr('title', 'Copied!')
.tooltip('fixTitle') .tooltip('fixTitle')
@ -147,7 +148,7 @@
}) })
// Notify copy failure // Notify copy failure
zeroClipboard.on('noflash wrongflash', function(client) { zeroClipboard.on('noflash wrongflash', function () {
htmlBridge htmlBridge
.attr('title', 'Flash required') .attr('title', 'Flash required')
.tooltip('fixTitle') .tooltip('fixTitle')