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
cee2f618
Commit
cee2f618
authored
Nov 30, 2011
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
define constructor on prototypes
parent
b1cba98a
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
30 additions
and
12 deletions
+30
-12
docs/javascript.html
docs/javascript.html
+1
-1
js/bootstrap-alert.js
js/bootstrap-alert.js
+3
-1
js/bootstrap-button.js
js/bootstrap-button.js
+3
-1
js/bootstrap-collapse.js
js/bootstrap-collapse.js
+3
-1
js/bootstrap-dropdown.js
js/bootstrap-dropdown.js
+3
-1
js/bootstrap-modal.js
js/bootstrap-modal.js
+3
-1
js/bootstrap-popover.js
js/bootstrap-popover.js
+3
-1
js/bootstrap-scrollspy.js
js/bootstrap-scrollspy.js
+3
-1
js/bootstrap-tab.js
js/bootstrap-tab.js
+3
-1
js/bootstrap-twipsy.js
js/bootstrap-twipsy.js
+5
-3
No files found.
docs/javascript.html
View file @
cee2f618
js/bootstrap-alert.js
View file @
cee2f618
...
...
@@ -32,7 +32,9 @@
Alert
.
prototype
=
{
close
:
function
(
e
)
{
constructor
:
Alert
,
close
:
function
(
e
)
{
var
$element
=
$
(
this
)
$element
=
$element
.
hasClass
(
'
alert-message
'
)
?
$element
:
$element
.
parent
()
...
...
js/bootstrap-button.js
View file @
cee2f618
...
...
@@ -31,7 +31,9 @@
Button
.
prototype
=
{
setState
:
function
(
state
)
{
constructor
:
Button
,
setState
:
function
(
state
)
{
var
d
=
'
disabled
'
,
$el
=
this
.
$element
,
data
=
$el
.
data
()
...
...
js/bootstrap-collapse.js
View file @
cee2f618
...
...
@@ -34,7 +34,9 @@
Collapse
.
prototype
=
{
dimension
:
function
()
{
constructor
:
Collapse
,
dimension
:
function
()
{
var
hasWidth
=
this
.
$element
.
hasClass
(
'
width
'
)
return
hasWidth
?
'
width
'
:
'
height
'
}
...
...
js/bootstrap-dropdown.js
View file @
cee2f618
...
...
@@ -32,7 +32,9 @@
Dropdown
.
prototype
=
{
toggle
:
function
(
e
)
{
constructor
:
Dropdown
,
toggle
:
function
(
e
)
{
var
li
=
$
(
this
).
parent
(
'
li
'
)
,
isActive
=
li
.
hasClass
(
'
open
'
)
...
...
js/bootstrap-modal.js
View file @
cee2f618
...
...
@@ -34,7 +34,9 @@
Modal
.
prototype
=
{
toggle
:
function
()
{
constructor
:
Modal
,
toggle
:
function
()
{
return
this
[
!
this
.
isShown
?
'
show
'
:
'
hide
'
]()
}
...
...
js/bootstrap-popover.js
View file @
cee2f618
...
...
@@ -34,7 +34,9 @@
Popover
.
prototype
=
$
.
extend
({},
$
.
fn
.
twipsy
.
Twipsy
.
prototype
,
{
setContent
:
function
()
{
constructor
:
Popover
,
setContent
:
function
()
{
var
$tip
=
this
.
tip
()
,
title
=
this
.
getTitle
()
,
content
=
this
.
getContent
()
...
...
js/bootstrap-scrollspy.js
View file @
cee2f618
...
...
@@ -39,7 +39,9 @@
ScrollSpy
.
prototype
=
{
refresh
:
function
()
{
constructor
:
ScrollSpy
,
refresh
:
function
()
{
this
.
targets
=
this
.
$body
.
find
(
this
.
selector
)
.
map
(
function
()
{
...
...
js/bootstrap-tab.js
View file @
cee2f618
...
...
@@ -31,7 +31,9 @@
Tab
.
prototype
=
{
show
:
function
()
{
constructor
:
Tab
,
show
:
function
()
{
var
$this
=
this
.
element
,
$ul
=
$this
.
closest
(
'
ul:not(.dropdown-menu)
'
)
,
href
=
$this
.
attr
(
'
data-target
'
)
||
$this
.
attr
(
'
href
'
)
...
...
js/bootstrap-twipsy.js
View file @
cee2f618
...
...
@@ -34,7 +34,9 @@
Twipsy
.
prototype
=
{
show
:
function
()
{
constructor
:
Twipsy
,
show
:
function
()
{
var
pos
,
actualWidth
,
actualHeight
...
...
@@ -183,7 +185,7 @@
return
this
}
$
.
fn
.
twipsy
.
initWith
=
function
(
options
,
Constructor
,
name
)
{
$
.
fn
.
twipsy
.
initWith
=
function
(
options
,
Base
,
name
)
{
var
twipsy
,
binder
,
eventIn
...
...
@@ -209,7 +211,7 @@
var
twipsy
=
$
.
data
(
ele
,
name
)
if
(
!
twipsy
)
{
twipsy
=
new
Constructor
(
ele
,
$
.
fn
.
twipsy
.
elementOptions
(
ele
,
options
))
twipsy
=
new
Base
(
ele
,
$
.
fn
.
twipsy
.
elementOptions
(
ele
,
options
))
$
.
data
(
ele
,
name
,
twipsy
)
}
...
...
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