]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix typo removeData for Tabs plugin
authorJoyce Babu <joyce@ennexa.com>
Fri, 28 Apr 2017 13:31:35 +0000 (19:01 +0530)
committerJohann-S <johann.servoire@gmail.com>
Fri, 28 Apr 2017 13:31:35 +0000 (15:31 +0200)
Should remove `data` not `class` on dispose

js/src/tab.js

index 6f8187d17073b9f93a5cfddc10fcf5c4e33330ff..c7bc520df68e9340942662651878377028278b0d 100644 (file)
@@ -140,7 +140,7 @@ const Tab = (($) => {
     }
 
     dispose() {
-      $.removeClass(this._element, DATA_KEY)
+      $.removeData(this._element, DATA_KEY)
       this._element = null
     }