diff options
| author | fat <[email protected]> | 2013-05-16 20:19:51 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2013-05-16 20:19:51 -0700 |
| commit | 140ef2320bbb96ad90b73a884d83198706affaf9 (patch) | |
| tree | 4de562f3c4fa8d989de16ebe61fd07732109a9e5 /js/button.js | |
| parent | 5ab72f76878a85f105702a24096268fea73fba2d (diff) | |
| download | bootstrap-140ef2320bbb96ad90b73a884d83198706affaf9.tar.xz bootstrap-140ef2320bbb96ad90b73a884d83198706affaf9.zip | |
change namespace back to dot notation and someother js shizzle
Diffstat (limited to 'js/button.js')
| -rw-r--r-- | js/button.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/button.js b/js/button.js index f43bba18f..1dbef5ccd 100644 --- a/js/button.js +++ b/js/button.js @@ -74,7 +74,7 @@ var data = $this.data('button') var options = typeof option == 'object' && option - if (!data) $this.data('bs-button', (data = new Button(this, options))) + if (!data) $this.data('bs.button', (data = new Button(this, options))) if (option == 'toggle') data.toggle() else if (option) data.setState(option) @@ -96,7 +96,7 @@ // BUTTON DATA-API // =============== - $(document).on('click.bs-button.bs-data-api', '[data-toggle^=button]', function (e) { + $(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) { var $btn = $(e.target) if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') $btn.button('toggle') |
