mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-09 07:06:36 +02:00
some changes from #13801 - add strict mode back and ==
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
"latedef" : true,
|
"latedef" : true,
|
||||||
"laxbreak" : true,
|
"laxbreak" : true,
|
||||||
"nonbsp" : true,
|
"nonbsp" : true,
|
||||||
|
"strict" : true,
|
||||||
"undef" : true,
|
"undef" : true,
|
||||||
"unused" : true,
|
"unused" : true,
|
||||||
"predef" : [ "define", "require" ]
|
"predef" : [ "define", "require" ]
|
||||||
|
14
js/affix.js
14
js/affix.js
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// AFFIX CLASS DEFINITION
|
// AFFIX CLASS DEFINITION
|
||||||
// ======================
|
// ======================
|
||||||
@@ -143,4 +143,6 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
14
js/alert.js
14
js/alert.js
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// ALERT CLASS DEFINITION
|
// ALERT CLASS DEFINITION
|
||||||
// ======================
|
// ======================
|
||||||
@@ -93,4 +93,6 @@
|
|||||||
|
|
||||||
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
|
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
14
js/button.js
14
js/button.js
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// BUTTON PUBLIC CLASS DEFINITION
|
// BUTTON PUBLIC CLASS DEFINITION
|
||||||
// ==============================
|
// ==============================
|
||||||
@@ -111,4 +111,6 @@
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// CAROUSEL CLASS DEFINITION
|
// CAROUSEL CLASS DEFINITION
|
||||||
// =========================
|
// =========================
|
||||||
@@ -223,4 +223,6 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// COLLAPSE PUBLIC CLASS DEFINITION
|
// COLLAPSE PUBLIC CLASS DEFINITION
|
||||||
// ================================
|
// ================================
|
||||||
@@ -171,4 +171,6 @@
|
|||||||
Plugin.call($target, option)
|
Plugin.call($target, option)
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// DROPDOWN CLASS DEFINITION
|
// DROPDOWN CLASS DEFINITION
|
||||||
// =========================
|
// =========================
|
||||||
@@ -152,4 +152,6 @@
|
|||||||
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
|
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
|
||||||
.on('keydown.bs.dropdown.data-api', toggle + ', [role="menu"], [role="listbox"]', Dropdown.prototype.keydown)
|
.on('keydown.bs.dropdown.data-api', toggle + ', [role="menu"], [role="listbox"]', Dropdown.prototype.keydown)
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
14
js/modal.js
14
js/modal.js
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// MODAL CLASS DEFINITION
|
// MODAL CLASS DEFINITION
|
||||||
// ======================
|
// ======================
|
||||||
@@ -281,4 +281,6 @@
|
|||||||
Plugin.call($target, option, this)
|
Plugin.call($target, option, this)
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// POPOVER PUBLIC CLASS DEFINITION
|
// POPOVER PUBLIC CLASS DEFINITION
|
||||||
// ===============================
|
// ===============================
|
||||||
@@ -114,4 +114,6 @@
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// SCROLLSPY CLASS DEFINITION
|
// SCROLLSPY CLASS DEFINITION
|
||||||
// ==========================
|
// ==========================
|
||||||
@@ -171,4 +171,6 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
14
js/tab.js
14
js/tab.js
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// TAB CLASS DEFINITION
|
// TAB CLASS DEFINITION
|
||||||
// ====================
|
// ====================
|
||||||
@@ -129,4 +129,6 @@
|
|||||||
Plugin.call($(this), 'show')
|
Plugin.call($(this), 'show')
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
@@ -8,12 +8,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// TOOLTIP PUBLIC CLASS DEFINITION
|
// TOOLTIP PUBLIC CLASS DEFINITION
|
||||||
// ===============================
|
// ===============================
|
||||||
@@ -458,4 +458,6 @@
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
@@ -7,12 +7,12 @@
|
|||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
|
|
||||||
(function (o_o) {
|
+function () { 'use strict';
|
||||||
typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
|
|
||||||
typeof exports === 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
|
||||||
})(function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
(function (o_o) {
|
||||||
|
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||||
|
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||||
|
})(function ($) {
|
||||||
|
|
||||||
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
||||||
// ============================================================
|
// ============================================================
|
||||||
@@ -60,4 +60,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
})
|
||||||
|
|
||||||
|
}();
|
||||||
|
Reference in New Issue
Block a user