Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
b31c35b6
Commit
b31c35b6
authored
Jun 23, 2014
by
Jacob
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13904 from twbs/revert-umd
Revert UMD for now, due to #13812.
parents
25b06d92
c2c19a4d
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1491 additions
and
1563 deletions
+1491
-1563
Gruntfile.js
Gruntfile.js
+1
-1
dist/js/bootstrap.js
dist/js/bootstrap.js
+1
-1
docs/assets/js/_src/customizer.js
docs/assets/js/_src/customizer.js
+1
-1
js/.jscsrc
js/.jscsrc
+2
-1
js/.jshintrc
js/.jshintrc
+1
-2
js/affix.js
js/affix.js
+93
-99
js/alert.js
js/alert.js
+56
-62
js/button.js
js/button.js
+74
-80
js/carousel.js
js/carousel.js
+169
-175
js/collapse.js
js/collapse.js
+117
-123
js/dropdown.js
js/dropdown.js
+99
-105
js/modal.js
js/modal.js
+202
-208
js/popover.js
js/popover.js
+75
-81
js/scrollspy.js
js/scrollspy.js
+127
-133
js/tab.js
js/tab.js
+88
-94
js/tooltip.js
js/tooltip.js
+345
-351
js/transition.js
js/transition.js
+40
-46
No files found.
Gruntfile.js
View file @
b31c35b6
...
@@ -33,7 +33,7 @@ module.exports = function (grunt) {
...
@@ -33,7 +33,7 @@ module.exports = function (grunt) {
'
* Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)
\n
'
+
'
* Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)
\n
'
+
'
*/
\n
'
,
'
*/
\n
'
,
// NOTE: This jqueryCheck code is duplicated in customizer.js; if making changes here, be sure to update the other copy too.
// NOTE: This jqueryCheck code is duplicated in customizer.js; if making changes here, be sure to update the other copy too.
jqueryCheck
:
'
if (typeof
define ==
\'
undefined
\'
&& typeof exports ==
\'
undefined
\'
&& typeof jQuery
==
\'
undefined
\'
) { throw new Error(
\'
Bootstrap
\\\'
s JavaScript requires jQuery
\'
) }
\n\n
'
,
jqueryCheck
:
'
if (typeof
jQuery =
==
\'
undefined
\'
) { throw new Error(
\'
Bootstrap
\\\'
s JavaScript requires jQuery
\'
) }
\n\n
'
,
// Task configuration.
// Task configuration.
clean
:
{
clean
:
{
...
...
dist/js/bootstrap.js
View file @
b31c35b6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
*/
if
(
typeof
define
==
'
undefined
'
&&
typeof
exports
==
'
undefined
'
&&
typeof
jQuery
==
'
undefined
'
)
{
throw
new
Error
(
'
Bootstrap
\'
s JavaScript requires jQuery
'
)
}
if
(
typeof
jQuery
=
==
'
undefined
'
)
{
throw
new
Error
(
'
Bootstrap
\'
s JavaScript requires jQuery
'
)
}
/* ========================================================================
/* ========================================================================
* Bootstrap: transition.js v3.1.1
* Bootstrap: transition.js v3.1.1
...
...
docs/assets/js/_src/customizer.js
View file @
b31c35b6
...
@@ -306,7 +306,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
...
@@ -306,7 +306,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
function
generateJS
(
preamble
)
{
function
generateJS
(
preamble
)
{
var
$checked
=
$
(
'
#plugin-section input:checked
'
)
var
$checked
=
$
(
'
#plugin-section input:checked
'
)
var
jqueryCheck
=
'
if (typeof
define ==
\'
undefined
\'
&& typeof exports ==
\'
undefined
\'
&& typeof jQuery ==
\'
undefined
\'
) { throw new Error(
\'
Bootstrap
\\\'
s JavaScript requires jQuery
\'
) }
\n\n
'
var
jqueryCheck
=
'
if (typeof
jQuery === "undefined") { throw new Error("Bootstrap
\'
s JavaScript requires jQuery"
) }
\n\n
'
if
(
!
$checked
.
length
)
return
false
if
(
!
$checked
.
length
)
return
false
...
...
js/.jscsrc
View file @
b31c35b6
...
@@ -11,9 +11,10 @@
...
@@ -11,9 +11,10 @@
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowTrailingComma": true,
"disallowSpacesInsideParentheses": true,
"disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"disallowTrailingWhitespace": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true,
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCommaBeforeLineBreak": true,
"requireDotNotation": true,
"requireDotNotation": true,
...
...
js/.jshintrc
View file @
b31c35b6
...
@@ -11,6 +11,5 @@
...
@@ -11,6 +11,5 @@
"nonbsp" : true,
"nonbsp" : true,
"strict" : true,
"strict" : true,
"undef" : true,
"undef" : true,
"unused" : true,
"unused" : true
"predef" : [ "define", "require" ]
}
}
js/affix.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +139,4 @@
...
@@ -143,6 +139,4 @@
})
})
})
})
})
}(
jQuery
);
}();
js/alert.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +89,4 @@
...
@@ -93,6 +89,4 @@
$
(
document
).
on
(
'
click.bs.alert.data-api
'
,
dismiss
,
Alert
.
prototype
.
close
)
$
(
document
).
on
(
'
click.bs.alert.data-api
'
,
dismiss
,
Alert
.
prototype
.
close
)
})
}(
jQuery
);
}();
js/button.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +107,4 @@
...
@@ -111,6 +107,4 @@
e
.
preventDefault
()
e
.
preventDefault
()
})
})
})
}(
jQuery
);
}();
js/carousel.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +219,4 @@
...
@@ -223,6 +219,4 @@
})
})
})
})
})
}(
jQuery
);
}();
js/collapse.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +167,4 @@
...
@@ -171,6 +167,4 @@
Plugin
.
call
(
$target
,
option
)
Plugin
.
call
(
$target
,
option
)
})
})
})
}(
jQuery
);
}();
js/dropdown.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +148,4 @@
...
@@ -152,6 +148,4 @@
.
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
)
})
}(
jQuery
);
}();
js/modal.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +277,4 @@
...
@@ -281,6 +277,4 @@
Plugin
.
call
(
$target
,
option
,
this
)
Plugin
.
call
(
$target
,
option
,
this
)
})
})
})
}(
jQuery
);
}();
js/popover.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +110,4 @@
...
@@ -114,6 +110,4 @@
return
this
return
this
}
}
})
}(
jQuery
);
}();
js/scrollspy.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +167,4 @@
...
@@ -171,6 +167,4 @@
})
})
})
})
})
}(
jQuery
);
}();
js/tab.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +125,4 @@
...
@@ -129,6 +125,4 @@
Plugin
.
call
(
$
(
this
),
'
show
'
)
Plugin
.
call
(
$
(
this
),
'
show
'
)
})
})
})
}(
jQuery
);
}();
js/tooltip.js
View file @
b31c35b6
...
@@ -8,12 +8,8 @@
...
@@ -8,12 +8,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +454,4 @@
...
@@ -458,6 +454,4 @@
return
this
return
this
}
}
})
}(
jQuery
);
}();
js/transition.js
View file @
b31c35b6
...
@@ -7,12 +7,8 @@
...
@@ -7,12 +7,8 @@
* ======================================================================== */
* ======================================================================== */
+
function
()
{
'
use strict
'
;
+
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,6 +56,4 @@
...
@@ -60,6 +56,4 @@
}
}
})
})
})
}(
jQuery
);
}();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment