From 7eddee286eb76da4d057a59706e4c512206dab45 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Sun, 11 Mar 2018 16:18:56 +0100 Subject: remove old references to jquery and some fixes --- js/tests/unit/button.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/tests/unit/button.js') diff --git a/js/tests/unit/button.js b/js/tests/unit/button.js index c162e3a9f..0fa19d154 100644 --- a/js/tests/unit/button.js +++ b/js/tests/unit/button.js @@ -208,11 +208,11 @@ $(function () { var $el = $('
') var $button = $el.bootstrapButton() - assert.ok(typeof $button.data('bs.button') !== 'undefined') + assert.ok(typeof Data.getData($button[0], 'bs.button') !== 'undefined') - $button.data('bs.button').dispose() + Data.getData($button[0], 'bs.button').dispose() - assert.ok(typeof $button.data('bs.button') === 'undefined') + assert.ok(Data.getData($button[0], 'bs.button') === null) }) QUnit.test('should return button version', function (assert) { -- cgit v1.2.3