]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove unused variables and make tests pass.
authorXhmikosR <xhmikosr@users.sourceforge.net>
Mon, 17 Mar 2014 05:42:05 +0000 (07:42 +0200)
committerXhmikosR <xhmikosr@users.sourceforge.net>
Tue, 10 Jun 2014 05:30:17 +0000 (08:30 +0300)
docs/assets/js/_src/application.js

index 86958292f38002088dc074ecd06c2f33f9b36fea..5de623e0034fec51bb1574355fa3896d799a0ff7 100644 (file)
@@ -9,6 +9,7 @@
  * details, see http://creativecommons.org/licenses/by/3.0/.
  */
 
+/* global ZeroClipboard */
 
 !function ($) {
   'use strict';
     })
 
     // Insert copy to clipboard button before .highlight or .bs-example
-    $('.highlight').each(function() {
+    $('.highlight').each(function () {
       var highlight = $(this)
       var previous = highlight.prev()
       var btnHtml = '<div class="zero-clipboard"><span class="btn-clipboard">Copy</span></div>'
     var htmlBridge = $('#global-zeroclipboard-html-bridge')
 
     // Handlers for ZeroClipboard
-    zeroClipboard.on('load', function(client) {
+    zeroClipboard.on('load', function () {
       htmlBridge
         .data('placement', 'top')
         .attr('title', 'Copy to clipboard')
     })
 
     // Copy to clipboard
-    zeroClipboard.on('dataRequested', function(client) {
+    zeroClipboard.on('dataRequested', function (client) {
       var highlight = $(this).parent().nextAll('.highlight').first()
       client.setText(highlight.text())
     })
 
     // Notify copy success and reset tooltip title
-    zeroClipboard.on('complete', function(client) {
+    zeroClipboard.on('complete', function () {
       htmlBridge
         .attr('title', 'Copied!')
         .tooltip('fixTitle')
     })
 
     // Notify copy failure
-    zeroClipboard.on('noflash wrongflash', function(client) {
+    zeroClipboard.on('noflash wrongflash', function () {
       htmlBridge
         .attr('title', 'Flash required')
         .tooltip('fixTitle')