diff options
| author | fat <[email protected]> | 2015-05-13 14:46:50 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2015-05-13 14:46:50 -0700 |
| commit | eaab1def7af7d7e1ab32ff69d043b46e2815ca22 (patch) | |
| tree | 495965eef95b6c7e1ca485c04311e6e451695b29 /js/src/popover.js | |
| parent | c2ced2292a6467b9c8a9fec3151982fd7ac8a239 (diff) | |
| download | bootstrap-eaab1def7af7d7e1ab32ff69d043b46e2815ca22.tar.xz bootstrap-eaab1def7af7d7e1ab32ff69d043b46e2815ca22.zip | |
add simple type checker implementation
Diffstat (limited to 'js/src/popover.js')
| -rw-r--r-- | js/src/popover.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/popover.js b/js/src/popover.js index eab4c7e63..31c7a3ae1 100644 --- a/js/src/popover.js +++ b/js/src/popover.js @@ -33,6 +33,10 @@ const Popover = (($) => { + '<div class="popover-content"></div></div>' }) + const DefaultType = $.extend({}, Tooltip.DefaultType, { + content : '(string|function)' + }) + const ClassName = { FADE : 'fade', IN : 'in' @@ -93,6 +97,10 @@ const Popover = (($) => { return EVENT_KEY } + static get DefaultType() { + return DefaultType + } + // overrides |
