2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Merge pull request #13388 from twbs/xhmikosr-js-style

Improve JS style
This commit is contained in:
XhmikosR
2014-06-07 09:13:05 +03:00
36 changed files with 266 additions and 221 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
$(function () {
'use strict';
module('modal plugin')
@@ -8,11 +9,11 @@ $(function () {
})
module('modal', {
setup: function() {
setup: function () {
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$.fn.bootstrapModal = $.fn.modal.noConflict()
},
teardown: function() {
teardown: function () {
$.fn.modal = $.fn.bootstrapModal
delete $.fn.bootstrapModal
}