(this: JQuery)
| 40 | |
| 41 | function makeFontSizeDropdown(elem: JQuery, obj: FontScale, buttonDropdown: JQuery) { |
| 42 | function onClickEvent(this: JQuery) { |
| 43 | // Toggle off the selection of the others |
| 44 | $(this).addClass('active').siblings().removeClass('active'); |
| 45 | // Send the data |
| 46 | obj.applyScale($(this).data('value')); |
| 47 | obj.emit('change'); |
| 48 | } |
| 49 | |
| 50 | for (let i = 8; i <= 30; i++) { |
| 51 | const item = $('<button></button>'); |
nothing calls this directly
no test coverage detected