mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-25 21:09:06 +02:00
define constructor on prototypes
This commit is contained in:
4
js/bootstrap-collapse.js
vendored
4
js/bootstrap-collapse.js
vendored
@@ -34,7 +34,9 @@
|
||||
|
||||
Collapse.prototype = {
|
||||
|
||||
dimension: function () {
|
||||
constructor: Collapse
|
||||
|
||||
, dimension: function () {
|
||||
var hasWidth = this.$element.hasClass('width')
|
||||
return hasWidth ? 'width' : 'height'
|
||||
}
|
||||
|
Reference in New Issue
Block a user