From 5057e7c7b8becf0adc25919336d05cb8dad4bf62 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 17 Mar 2014 07:42:05 +0200 Subject: [PATCH] Remove unused variables and make tests pass. --- docs/assets/js/_src/application.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/assets/js/_src/application.js b/docs/assets/js/_src/application.js index 86958292f3..5de623e003 100644 --- a/docs/assets/js/_src/application.js +++ b/docs/assets/js/_src/application.js @@ -9,6 +9,7 @@ * details, see http://creativecommons.org/licenses/by/3.0/. */ +/* global ZeroClipboard */ !function ($) { 'use strict'; @@ -108,7 +109,7 @@ }) // 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 = '
Copy
' @@ -123,7 +124,7 @@ 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') @@ -131,13 +132,13 @@ }) // 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') @@ -147,7 +148,7 @@ }) // Notify copy failure - zeroClipboard.on('noflash wrongflash', function(client) { + zeroClipboard.on('noflash wrongflash', function () { htmlBridge .attr('title', 'Flash required') .tooltip('fixTitle')