Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quotes #10709

Merged
merged 1 commit into from
Dec 8, 2013
Merged

Quotes #10709

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* jshint node: true */

module.exports = function (grunt) {
"use strict";
'use strict';

// Force use of Unix newlines
grunt.util.linefeed = '\n';
Expand Down Expand Up @@ -135,7 +135,7 @@ module.exports = function (grunt) {
copy: {
fonts: {
expand: true,
src: ["fonts/*"],
src: ['fonts/*'],
dest: 'dist/'
}
},
Expand Down Expand Up @@ -164,12 +164,12 @@ module.exports = function (grunt) {
options: {
reset: true,
relaxerror: [
"Bad value X-UA-Compatible for attribute http-equiv on element meta.",
"Element img is missing required attribute src."
'Bad value X-UA-Compatible for attribute http-equiv on element meta.',
'Element img is missing required attribute src.'
]
},
files: {
src: ["_gh_pages/**/*.html"]
src: ['_gh_pages/**/*.html']
}
},

Expand Down
26 changes: 13 additions & 13 deletions dist/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
// ============================================================
Expand Down Expand Up @@ -83,7 +83,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// ALERT CLASS DEFINITION
// ======================
Expand Down Expand Up @@ -182,7 +182,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// BUTTON PUBLIC CLASS DEFINITION
// ==============================
Expand Down Expand Up @@ -298,7 +298,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// CAROUSEL CLASS DEFINITION
// =========================
Expand Down Expand Up @@ -516,7 +516,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// COLLAPSE PUBLIC CLASS DEFINITION
// ================================
Expand Down Expand Up @@ -696,7 +696,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// DROPDOWN CLASS DEFINITION
// =========================
Expand Down Expand Up @@ -851,7 +851,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// MODAL CLASS DEFINITION
// ======================
Expand Down Expand Up @@ -1099,7 +1099,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// TOOLTIP PUBLIC CLASS DEFINITION
// ===============================
Expand Down Expand Up @@ -1324,7 +1324,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
}

Tooltip.prototype.replaceArrow = function (delta, dimension, position) {
this.arrow().css(position, delta ? (50 * (1 - delta / dimension) + "%") : '')
this.arrow().css(position, delta ? (50 * (1 - delta / dimension) + '%') : '')
}

Tooltip.prototype.setContent = function () {
Expand Down Expand Up @@ -1485,7 +1485,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// POPOVER PUBLIC CLASS DEFINITION
// ===============================
Expand Down Expand Up @@ -1603,7 +1603,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// SCROLLSPY CLASS DEFINITION
// ==========================
Expand Down Expand Up @@ -1762,7 +1762,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// TAB CLASS DEFINITION
// ====================
Expand Down Expand Up @@ -1898,7 +1898,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// AFFIX CLASS DEFINITION
// ======================
Expand Down
16 changes: 8 additions & 8 deletions docs-assets/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
//
// See Getting Started docs for more information
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style");
var msViewportStyle = document.createElement('style');
msViewportStyle.appendChild(
document.createTextNode(
"@-ms-viewport{width:auto!important}"
'@-ms-viewport{width:auto!important}'
)
);
document.getElementsByTagName("head")[0].
document.getElementsByTagName('head')[0].
appendChild(msViewportStyle);
}

Expand Down Expand Up @@ -73,20 +73,20 @@

// tooltip demo
$('.tooltip-demo').tooltip({
selector: "[data-toggle=tooltip]",
container: "body"
selector: '[data-toggle=tooltip]',
container: 'body'
})

$('.tooltip-test').tooltip()
$('.popover-test').popover()

$('.bs-docs-navbar').tooltip({
selector: "a[data-toggle=tooltip]",
container: ".bs-docs-navbar .nav"
selector: 'a[data-toggle=tooltip]',
container: '.bs-docs-navbar .nav'
})

// popover demo
$("[data-toggle=popover]")
$('[data-toggle=popover]')
.popover()

// button state demo
Expand Down
36 changes: 18 additions & 18 deletions docs-assets/js/customizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ window.onload = function () { // wait for load in a dumb way because B-0
}

function getQueryParam(key) {
key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, "\\$&"); // escape RegEx meta chars
var match = location.search.match(new RegExp("[?&]" + key + "=([^&]+)(&|$)"));
return match && decodeURIComponent(match[1].replace(/\+/g, " "));
key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, '\\$&'); // escape RegEx meta chars
var match = location.search.match(new RegExp('[?&]' + key + '=([^&]+)(&|$)'));
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}

function createGist(configJson) {
var data = {
"description": "Bootstrap Customizer Config",
"public": true,
"files": {
"config.json": {
"content": configJson
'description': 'Bootstrap Customizer Config',
'public': true,
'files': {
'config.json': {
'content': configJson
}
}
}
Expand All @@ -57,7 +57,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
data: JSON.stringify(data)
})
.success(function (result) {
var origin = window.location.protocol + "//" + window.location.host
var origin = window.location.protocol + '//' + window.location.host
history.replaceState(false, document.title, origin + window.location.pathname + '?id=' + result.id)
})
.error(function (err) {
Expand Down Expand Up @@ -144,10 +144,10 @@ window.onload = function () { // wait for load in a dumb way because B-0
}

if (config) {
zip.file("config.json", config)
zip.file('config.json', config)
}

var content = zip.generate({ type: "blob" })
var content = zip.generate({ type: 'blob' })

complete(content)
}
Expand Down Expand Up @@ -311,22 +311,22 @@ window.onload = function () { // wait for load in a dumb way because B-0

generateZip(generateCSS(), generateJavascript(), generateFonts(), configJson, function (blob) {
$compileBtn.removeAttr('disabled')
saveAs(blob, "bootstrap.zip")
saveAs(blob, 'bootstrap.zip')
createGist(configJson)
})
})

// browser support alerts
if (!window.URL && navigator.userAgent.toLowerCase().indexOf('safari') != -1) {
showCallout("Looks like you're using safari, which sadly doesn't have the best support\
for HTML5 blobs. Because of this your file will be downloaded with the name <code>\"untitled\"</code>.\
However, if you check your downloads folder, just rename this <code>\"untitled\"</code> file\
to <code>\"bootstrap.zip\"</code> and you should be good to go!")
showCallout('Looks like you\'re using safari, which sadly doesn\'t have the best support\
for HTML5 blobs. Because of this your file will be downloaded with the name <code>"untitled"</code>.\
However, if you check your downloads folder, just rename this <code>"untitled"</code> file\
to <code>"bootstrap.zip"</code> and you should be good to go!')
} else if (!window.URL && !window.webkitURL) {
$('.bs-docs-section, .bs-sidebar').css('display', 'none')

showCallout("Looks like your current browser doesn't support the Bootstrap Customizer. Please take a second\
to <a href=\"https://www.google.com/intl/en/chrome/browser/\"> upgrade to a more modern browser</a>.", true)
showCallout('Looks like your current browser doesn\'t support the Bootstrap Customizer. Please take a second\
to <a href="https://www.google.com/intl/en/chrome/browser/"> upgrade to a more modern browser</a>.', true)
}

parseUrl()
Expand Down
1 change: 1 addition & 0 deletions js/.jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"expr" : true,
"laxbreak" : true,
"laxcomma" : true,
"quotmark" : "single",
"validthis": true
}
2 changes: 1 addition & 1 deletion js/affix.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// AFFIX CLASS DEFINITION
// ======================
Expand Down
2 changes: 1 addition & 1 deletion js/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// ALERT CLASS DEFINITION
// ======================
Expand Down
2 changes: 1 addition & 1 deletion js/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// BUTTON PUBLIC CLASS DEFINITION
// ==============================
Expand Down
2 changes: 1 addition & 1 deletion js/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// CAROUSEL CLASS DEFINITION
// =========================
Expand Down
2 changes: 1 addition & 1 deletion js/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// COLLAPSE PUBLIC CLASS DEFINITION
// ================================
Expand Down
2 changes: 1 addition & 1 deletion js/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// DROPDOWN CLASS DEFINITION
// =========================
Expand Down
2 changes: 1 addition & 1 deletion js/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// MODAL CLASS DEFINITION
// ======================
Expand Down
2 changes: 1 addition & 1 deletion js/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// POPOVER PUBLIC CLASS DEFINITION
// ===============================
Expand Down
2 changes: 1 addition & 1 deletion js/scrollspy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// SCROLLSPY CLASS DEFINITION
// ==========================
Expand Down
2 changes: 1 addition & 1 deletion js/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ======================================================================== */


+function ($) { "use strict";
+function ($) { 'use strict';

// TAB CLASS DEFINITION
// ====================
Expand Down
10 changes: 5 additions & 5 deletions js/tests/unit/affix.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
$(function () {

module("affix")
module('affix')

test("should provide no conflict", function () {
test('should provide no conflict', function () {
var affix = $.fn.affix.noConflict()
ok(!$.fn.affix, 'affix was set back to undefined (org value)')
$.fn.affix = affix
})

test("should be defined on jquery object", function () {
test('should be defined on jquery object', function () {
ok($(document.body).affix, 'affix method is defined')
})

test("should return element", function () {
test('should return element', function () {
ok($(document.body).affix()[0] == document.body, 'document.body returned')
})

test("should exit early if element is not visible", function () {
test('should exit early if element is not visible', function () {
var $affix = $('<div style="display: none"></div>').affix()
$affix.data('bs.affix').checkPosition()
ok(!$affix.hasClass('affix'), 'affix class was not added')
Expand Down
Loading