button.disabled = !checkbox.checked;
});
- button.addEventListener('click', function() {
+ button.addEventListener(WCF_CLICK_EVENT, function() {
Ajax.apiOnce({
data: {
actionName: 'markAsTainted',
});
// add event listeners
- DomTraverse.childByClass(this._button, '.button').addEventListener('click', this._validateLimit.bind(this));
- elByClass(this._target, 'jsButtonInsertAttachment').addEventListener('click', this._insert.bind(this));
- elByClass(this._target, 'jsButtonAttachmentInsertThumbnail').addEventListener('click', this._insert.bind(this));
- elByClass(this._target, 'jsButtonAttachmentInsertFull').addEventListener('click', this._insert.bind(this));
+ DomTraverse.childByClass(this._button, '.button').addEventListener(WCF_CLICK_EVENT, this._validateLimit.bind(this));
+ elByClass(this._target, 'jsButtonInsertAttachment').addEventListener(WCF_CLICK_EVENT, this._insert.bind(this));
+ elByClass(this._target, 'jsButtonAttachmentInsertThumbnail').addEventListener(WCF_CLICK_EVENT, this._insert.bind(this));
+ elByClass(this._target, 'jsButtonAttachmentInsertFull').addEventListener(WCF_CLICK_EVENT, this._insert.bind(this));
// TODO: WCF.System.Event.addListener('com.woltlab.wcf.action.delete', 'attachment_' + this._wysiwygContainerId, $.proxy(this._removeLimitError, this));
if (DomTraverse.childBySel(this._target, 'li:not(.uploadFailed)')) {
elHide(this._insertAllButton);
}
- this._insertAllButton.addEventListener('click', this._insertAll.bind(this));
+ this._insertAllButton.addEventListener(WCF_CLICK_EVENT, this._insertAll.bind(this));
this._button.appendChild(this._insertAllButton);
if (this._wysiwygContainerId) {
span.className = 'button small jsButtonAttachmentInsertThumbnail';
span.textContent = Language.get('wcf.global.button.insertThumbnail');
elData(span, 'object-id', attachment.attachmentID);
- span.addEventListener('click', this._insert.bind(this));
+ span.addEventListener(WCF_CLICK_EVENT, this._insert.bind(this));
insertThumbnailButton.appendChild(span);
var insertOriginalButton = elCreate('li');
span.className = 'button small jsButtonAttachmentInsertFull';
span.textContent = Language.get('wcf.global.button.insertFull');
elData(span, 'object-id', attachment.attachmentID);
- span.addEventListener('click', this._insert.bind(this));
+ span.addEventListener(WCF_CLICK_EVENT, this._insert.bind(this));
insertOriginalButton.appendChild(span);
}
else {
span.className = 'button small jsButtonAttachmentInsertPlain';
span.textContent = Language.get('wcf.global.button.insert');
elData(span, 'object-id', attachment.attachmentID);
- span.addEventListener('click', this._insert.bind(this));
+ span.addEventListener(WCF_CLICK_EVENT, this._insert.bind(this));
insertPlainButton.appendChild(span);
}
}
toggleButton.textContent = elData(toggleButton, 'title-' + (expand ? 'collapse' : 'expand'));
};
- toggleButton.addEventListener('click', toggle);
+ toggleButton.addEventListener(WCF_CLICK_EVENT, toggle);
// searching in a page causes Google Chrome to scroll
// the box if something inside it matches
var markAll = elBySel('.jsClipboardMarkAll', container);
if (markAll !== null) {
elData(markAll, 'container-id', containerId);
- markAll.addEventListener('click', this._markAll.bind(this));
+ markAll.addEventListener(WCF_CLICK_EVENT, this._markAll.bind(this));
}
containerData = {
if (!_knownCheckboxes.has(checkbox)) {
elData(checkbox, 'container-id', containerId);
- checkbox.addEventListener('click', _callbackCheckbox);
+ checkbox.addEventListener(WCF_CLICK_EVENT, _callbackCheckbox);
_knownCheckboxes.add(checkbox);
}
dropdown.appendChild(item);
elData(item, 'type', typeName);
- item.addEventListener('click', _callbackItem);
+ item.addEventListener(WCF_CLICK_EVENT, _callbackItem);
_itemData.set(item, itemData);
}
label = elCreate('span');
label.textContent = Language.get('wcf.clipboard.item.unmarkAll');
unmarkAll.appendChild(label);
- unmarkAll.addEventListener('click', _callbackUnmarkAll);
+ unmarkAll.addEventListener(WCF_CLICK_EVENT, _callbackUnmarkAll);
dropdown.appendChild(unmarkAll);
if (keepEditors.indexOf(typeName) !== -1) {
if (buttons.length) {
var clickCallback = this._click.bind(this);
for (var i = 0, length = buttons.length; i < length; i++) {
- buttons[i].addEventListener('click', clickCallback);
+ buttons[i].addEventListener(WCF_CLICK_EVENT, clickCallback);
}
}
},
element.addEventListener('mouseleave', _callbackMouseLeave);
if (element.nodeName === 'A' && elAttr(element, 'href')) {
- element.addEventListener('click', _callbackClick);
+ element.addEventListener(WCF_CLICK_EVENT, _callbackClick);
}
var cacheId = identifier + "-" + objectId;
var listItem = elCreate('li');
listItem.classList.add('styleChanger');
- listItem.addEventListener('click', this.showDialog.bind(this));
+ listItem.addEventListener(WCF_CLICK_EVENT, this.showDialog.bind(this));
var link = elCreate('a');
elAttr(link, 'href', '#');
var style = styles[i];
style.classList.add('pointer');
- style.addEventListener('click', this._click.bind(this));
+ style.addEventListener(WCF_CLICK_EVENT, this._click.bind(this));
}
}).bind(this)
}
var groupId = ~~elData(group, 'object-id');
var disabledNotification = elById('settings_' + groupId + '_disabled');
- disabledNotification.addEventListener('click', function() { mailSetting.classList.remove('active'); });
+ disabledNotification.addEventListener(WCF_CLICK_EVENT, function() { mailSetting.classList.remove('active'); });
var enabledNotification = elById('settings_' + groupId + '_enabled');
- enabledNotification.addEventListener('click', function() { mailSetting.classList.add('active'); });
+ enabledNotification.addEventListener(WCF_CLICK_EVENT, function() { mailSetting.classList.add('active'); });
var mailValue = DomTraverse.childByTag(mailSetting, 'INPUT');
var button = DomTraverse.childByTag(mailSetting, 'A');
elData(button, 'object-id', groupId);
- button.addEventListener('click', _callbackClick);
+ button.addEventListener(WCF_CLICK_EVENT, _callbackClick);
_data.set(groupId, {
button: button,
link.textContent = Language.get('wcf.user.notification.mailNotificationType.' + value);
listItem.appendChild(link);
elData(listItem, 'value', value);
- listItem.addEventListener('click', _callbackSelectType);
+ listItem.addEventListener(WCF_CLICK_EVENT, _callbackSelectType);
if (initialValue === value) {
listItem.className = 'active';
element.parentNode.insertBefore(shadowElement, element);
element.removeAttribute('name');
- element.addEventListener('click', _callbackOpen);
+ element.addEventListener(WCF_CLICK_EVENT, _callbackOpen);
// create input addon
var container = elCreate('div');
var button = elCreate('a');
button.className = 'inputSuffix button';
- button.addEventListener('click', _callbackOpen);
+ button.addEventListener(WCF_CLICK_EVENT, _callbackOpen);
container.appendChild(button);
var icon = elCreate('span');
_datePicker = elCreate('div');
_datePicker.className = 'datePicker';
- _datePicker.addEventListener('click', function(event) { event.stopPropagation(); });
+ _datePicker.addEventListener(WCF_CLICK_EVENT, function(event) { event.stopPropagation(); });
var pointer = elCreate('span');
pointer.className = 'elementPointer';
_dateMonthPrevious = elCreate('a');
_dateMonthPrevious.className = 'icon icon16 fa-arrow-left previous';
- _dateMonthPrevious.addEventListener('click', this.previousMonth.bind(this));
+ _dateMonthPrevious.addEventListener(WCF_CLICK_EVENT, this.previousMonth.bind(this));
header.appendChild(_dateMonthPrevious);
var monthYearContainer = elCreate('span');
_dateMonthNext = elCreate('a');
_dateMonthNext.className = 'icon icon16 fa-arrow-right next';
- _dateMonthNext.addEventListener('click', this.nextMonth.bind(this));
+ _dateMonthNext.addEventListener(WCF_CLICK_EVENT, this.nextMonth.bind(this));
header.appendChild(_dateMonthNext);
_dateGrid = elCreate('ul');
for (var j = 0; j < 7; j++) {
cell = elCreate('a');
- cell.addEventListener('click', callbackClick);
+ cell.addEventListener(WCF_CLICK_EVENT, callbackClick);
_dateCells.push(cell);
row.appendChild(cell);
element.value = data.shadow.value;
element.removeAttribute('data-value');
- element.removeEventListener('click', _callbackOpen);
+ element.removeEventListener(WCF_CLICK_EVENT, _callbackOpen);
elRemove(data.shadow);
element.classList.remove('inputDatePicker');
listItem = elCreate('li');
listItem.className = 'boxFlag';
- listItem.addEventListener('click', callbackClick);
+ listItem.addEventListener(WCF_CLICK_EVENT, callbackClick);
elData(listItem, 'language-id', availableLanguageId);
dropdownMenu.appendChild(listItem);
listItem = elCreate('li');
elData(listItem, 'language-id', availableLanguageId);
- listItem.addEventListener('click', callbackClick);
+ listItem.addEventListener(WCF_CLICK_EVENT, callbackClick);
dropdownMenu.appendChild(listItem);
a = elCreate('a');
dropdownToggle.innerHTML = listItem.firstChild.innerHTML;
}
- listItem.addEventListener('click', callbackClick)
+ listItem.addEventListener(WCF_CLICK_EVENT, callbackClick)
}
else if (languageId === 0) {
dropdownToggle.innerHTML = null;
span.textContent = availableLanguages[languageId];
listItem.appendChild(span);
- listItem.addEventListener('click', callbackClick);
+ listItem.addEventListener(WCF_CLICK_EVENT, callbackClick);
dropdownMenu.appendChild(listItem);
}
}
span = elCreate('span');
span.textContent = Language.get('wcf.global.button.disabledI18n');
listItem.appendChild(span);
- listItem.addEventListener('click', callbackClick);
+ listItem.addEventListener(WCF_CLICK_EVENT, callbackClick);
dropdownMenu.appendChild(listItem);
}
setTimeout(this._setData.bind(this), 100);
- elBySel('button[data-type="submit"]', editor).addEventListener('click', this._saveData.bind(this));
+ elBySel('button[data-type="submit"]', editor).addEventListener(WCF_CLICK_EVENT, this._saveData.bind(this));
}).bind(this),
data: {
actionName: 'getEditorDialog',
var editIcon = elByClass('jsMediaEditIcon', listItem)[0];
if (editIcon) {
editIcon.classList.remove('jsMediaEditIcon');
- editIcon.addEventListener('click', this._editMedia.bind(this));
+ editIcon.addEventListener(WCF_CLICK_EVENT, this._editMedia.bind(this));
}
}
}
this._activeButton = null;
this._buttons = elByClass(this._options.buttonClass || 'jsMediaEditorButton');
for (var i = 0, length = this._buttons.length; i < length; i++) {
- this._buttons[i].addEventListener('click', this._click.bind(this));
+ this._buttons[i].addEventListener(WCF_CLICK_EVENT, this._click.bind(this));
}
this._activeButton = null;
var insertIcon = elByClass('jsMediaInsertIcon', listItem)[0];
if (insertIcon) {
insertIcon.classList.remove('jsMediaInsertIcon');
- insertIcon.addEventListener('click', this._openInsertDialog.bind(this));
+ insertIcon.addEventListener(WCF_CLICK_EVENT, this._openInsertDialog.bind(this));
}
}
},
submitButton.className = 'buttonPrimary';
submitButton.textContent = Language.get('wcf.global.button.insert');
elData(submitButton, 'object-id', media.mediaID);
- submitButton.addEventListener('click', this._insertMedia.bind(this));
+ submitButton.addEventListener(WCF_CLICK_EVENT, this._insertMedia.bind(this));
formSubmit.appendChild(submitButton);
UiDialog.open({
this._input.addEventListener('keypress', this._keyPress.bind(this));
this._cancelButton = elById(this._getIdPrefix() + 'SearchCancelButton');
- this._cancelButton.addEventListener('click', this._cancelSearch.bind(this));
+ this._cancelButton.addEventListener(WCF_CLICK_EVENT, this._cancelSearch.bind(this));
};
Core.inherit(MediaManagerSearch, MediaSearch, {
/**
if (store) {
var storeElement = elById(store);
if (storeElement && storeElement.tagName === 'INPUT') {
- this._buttons[i].addEventListener('click', this._click.bind(this));
+ this._buttons[i].addEventListener(WCF_CLICK_EVENT, this._click.bind(this));
this._storeElements.set(button, storeElement);
}
var chooseIcon = elByClass('jsMediaSelectIcon', listItem)[0];
if (chooseIcon) {
chooseIcon.classList.remove('jsMediaSelectIcon');
- chooseIcon.addEventListener('click', this._chooseMedia.bind(this));
+ chooseIcon.addEventListener(WCF_CLICK_EVENT, this._chooseMedia.bind(this));
}
}
},
this._fileType = initialFileType;
}
- this._fileTypes[i].addEventListener('click', selectFileType);
+ this._fileTypes[i].addEventListener(WCF_CLICK_EVENT, selectFileType);
}
if (initialFileType && initialFileType.length) {
fileIcon.classList.add('pointer');
file.classList.add('uploadFailed');
- file.addEventListener('click', function() {
+ file.addEventListener(WCF_CLICK_EVENT, function() {
elRemove(this);
});
* Sets up global event listener for bubbled clicks events.
*/
setup: function() {
- document.body.addEventListener('click', this.execute.bind(this));
+ document.body.addEventListener(WCF_CLICK_EVENT, this.execute.bind(this));
},
/**
_confirmButton = elCreate('button');
_confirmButton.classList.add('buttonPrimary');
_confirmButton.textContent = Language.get('wcf.global.confirmation.confirm');
- _confirmButton.addEventListener('click', this._confirm.bind(this));
+ _confirmButton.addEventListener(WCF_CLICK_EVENT, this._confirm.bind(this));
formSubmit.appendChild(_confirmButton);
var cancelButton = elCreate('button');
cancelButton.textContent = Language.get('wcf.global.confirmation.cancel');
- cancelButton.addEventListener('click', function() { UiDialog.close('wcfSystemConfirmation'); });
+ cancelButton.addEventListener(WCF_CLICK_EVENT, function() { UiDialog.close('wcfSystemConfirmation'); });
formSubmit.appendChild(cancelButton);
document.body.appendChild(dialog);
_container = elCreate('div');
_container.classList.add('dialogOverlay');
elAttr(_container, 'aria-hidden', 'true');
- _container.addEventListener('click', this._closeOnBackdrop.bind(this));
+ _container.addEventListener(WCF_CLICK_EVENT, this._closeOnBackdrop.bind(this));
elById('content').appendChild(_container);
((function(button, container) {
container.classList.remove('jsStaticDialogContent');
elHide(container);
- button.addEventListener('click', this.openStatic.bind(this, container.id, null, { title: elData(container, 'title') }));
+ button.addEventListener(WCF_CLICK_EVENT, this.openStatic.bind(this, container.id, null, { title: elData(container, 'title') }));
}).bind(this))(button, container);
}
}
closeButton.className = 'dialogCloseButton jsTooltip';
elAttr(closeButton, 'title', options.closeButtonLabel);
elAttr(closeButton, 'aria-label', options.closeButtonLabel);
- closeButton.addEventListener('click', this._close.bind(this));
+ closeButton.addEventListener(WCF_CLICK_EVENT, this._close.bind(this));
header.appendChild(closeButton);
var span = elCreate('span');
var item = elCreate('li');
item.innerHTML = hiddenItem.innerHTML;
- item.addEventListener('click', (function(event) {
+ item.addEventListener(WCF_CLICK_EVENT, (function(event) {
event.preventDefault();
- Core.triggerEvent(elBySel('a', hiddenItem), 'click');
+ Core.triggerEvent(elBySel('a', hiddenItem), WCF_CLICK_EVENT);
// force a rebuild to guarantee the active item being visible
setTimeout(function() {
var list = elCreate('ol');
list.className = 'inputItemList';
elData(list, 'element-id', element.id);
- list.addEventListener('click', function(event) {
+ list.addEventListener(WCF_CLICK_EVENT, function(event) {
if (event.target === list) element.focus();
});
var button = elCreate('a');
button.className = 'icon icon16 fa-times';
- button.addEventListener('click', _callbackRemoveItem);
+ button.addEventListener(WCF_CLICK_EVENT, _callbackRemoveItem);
listItem.appendChild(content);
listItem.appendChild(button);
summaryContent = elCreate('span');
summaryContent.className = 'likesSummaryContent';
- summaryContent.addEventListener('click', this._showSummary.bind(this, element));
+ summaryContent.addEventListener(WCF_CLICK_EVENT, this._showSummary.bind(this, element));
summary.appendChild(summaryContent);
if (this._options.summaryPrepend) {
badge = elCreate('a');
badge.href = '#';
badge.className = 'wcfLikeCounter jsTooltip' + (this._options.badgeClassNames ? ' ' + this._options.badgeClassNames : '');
- badge.addEventListener('click', this._showSummary.bind(this, element));
+ badge.addEventListener(WCF_CLICK_EVENT, this._showSummary.bind(this, element));
if (badgeContainer.nodeName === 'OL' || badgeContainer.nodeName === 'UL') {
listItem = elCreate('li');
button.href = '#';
button.title = title;
button.innerHTML = '<span class="icon icon16 fa-thumbs-o-' + (isLike ? 'up' : 'down') + '" /> <span class="invisible">' + title + '</span>';
- button.addEventListener('click', this._like.bind(this, element));
+ button.addEventListener(WCF_CLICK_EVENT, this._like.bind(this, element));
elData(button, 'type', (isLike ? 'like' : 'dislike'));
listItem.appendChild(button);
canEdit = elDataBool(element, 'can-edit');
if (this._options.canEditInline) {
- button.addEventListener('click', this._clickDropdown.bind(this, element));
+ button.addEventListener(WCF_CLICK_EVENT, this._clickDropdown.bind(this, element));
button.classList.add('jsDropdownEnabled');
if (canEdit) {
}
}
else if (canEdit) {
- button.addEventListener('click', this._click.bind(this, element));
+ button.addEventListener(WCF_CLICK_EVENT, this._click.bind(this, element));
}
}
button.classList.add('dropdownToggle');
button.parentNode.classList.add('dropdown');
(function(button, element) {
- button.addEventListener('click', (function(event) {
+ button.addEventListener(WCF_CLICK_EVENT, (function(event) {
event.preventDefault();
event.stopPropagation();
}
setTimeout(function() {
- Core.triggerEvent(button, 'click');
+ Core.triggerEvent(button, WCF_CLICK_EVENT);
}, 10);
},
listItem.appendChild(label);
if (item.item === 'editItem') {
- listItem.addEventListener('click', this._click.bind(this, null));
+ listItem.addEventListener(WCF_CLICK_EVENT, this._click.bind(this, null));
}
else {
- listItem.addEventListener('click', callbackClick);
+ listItem.addEventListener(WCF_CLICK_EVENT, callbackClick);
}
}
var formSubmit = elBySel('.formSubmit', editor);
var buttonSave = elBySel('button[data-type="save"]', formSubmit);
- buttonSave.addEventListener('click', this._save.bind(this));
+ buttonSave.addEventListener(WCF_CLICK_EVENT, this._save.bind(this));
if (this._options.extendedForm) {
var buttonExtended = elBySel('button[data-type="extended"]', formSubmit);
- buttonExtended.addEventListener('click', this._prepareExtended.bind(this));
+ buttonExtended.addEventListener(WCF_CLICK_EVENT, this._prepareExtended.bind(this));
}
var buttonCancel = elBySel('button[data-type="cancel"]', formSubmit);
- buttonCancel.addEventListener('click', this._restoreMessage.bind(this));
+ buttonCancel.addEventListener(WCF_CLICK_EVENT, this._restoreMessage.bind(this));
EventHandler.add('com.woltlab.wcf.redactor', 'submitEditor_' + id, (function(data) {
data.cancel = true;
_initSearchBar: function() {
var _searchBar = elBySel('.searchBar');
- _searchBar.addEventListener('click', function() {
+ _searchBar.addEventListener(WCF_CLICK_EVENT, function() {
if (_enabled) {
_searchBar.classList.add('searchBarOpen');
return false;
});
- _main.addEventListener('click', function() { _searchBar.classList.remove('searchBarOpen'); });
+ _main.addEventListener(WCF_CLICK_EVENT, function() { _searchBar.classList.remove('searchBarOpen'); });
},
_initButtonGroupNavigation: function() {
button.appendChild(span);
(function(button) {
- button.addEventListener('click', function(ev) {
+ button.addEventListener(WCF_CLICK_EVENT, function(ev) {
var next = button.nextElementSibling;
if (next !== null) {
next.classList.toggle('open');
_notificationElement.id = 'systemNotification';
_message = elCreate('p');
- _message.addEventListener('click', _callbackHide);
+ _message.addEventListener(WCF_CLICK_EVENT, _callbackHide);
_notificationElement.appendChild(_message);
document.body.appendChild(_notificationElement);
if (!_elements.has(element)) {
var jumpTo = elBySel('.jumpTo', element);
if (jumpTo !== null) {
- jumpTo.addEventListener('click', this._click.bind(this, element));
+ jumpTo.addEventListener(WCF_CLICK_EVENT, this._click.bind(this, element));
_elements.set(element, { callback: callback });
}
_description = elByTag('small', content)[0];
_buttonSubmit = elByTag('button', content)[0];
- _buttonSubmit.addEventListener('click', this._submit.bind(this));
+ _buttonSubmit.addEventListener(WCF_CLICK_EVENT, this._submit.bind(this));
}).bind(this),
title: Language.get('wcf.global.page.pagination')
},
elAttr(button, 'title', Language.get('wcf.global.scrollUp'));
button.innerHTML = '<span class="icon icon16 fa-arrow-up"></span>';
- button.addEventListener('click', this._jump.bind(this));
+ button.addEventListener(WCF_CLICK_EVENT, this._jump.bind(this));
PageAction.add('toTop', button);
link.title = Language.get('wcf.global.page.previous');
listItem.appendChild(link);
- link.addEventListener('click', this.switchPage.bind(this, this._options.activePage - 1));
+ link.addEventListener(WCF_CLICK_EVENT, this.switchPage.bind(this, this._options.activePage - 1));
}
else {
listItem.innerHTML = '<span class="' + iconClassNames + '"></span>';
link.title = Language.get('wcf.global.page.next');
listItem.appendChild(link);
- link.addEventListener('click', this.switchPage.bind(this, this._options.activePage + 1));
+ link.addEventListener(WCF_CLICK_EVENT, this.switchPage.bind(this, this._options.activePage + 1));
}
else {
listItem.innerHTML = '<span class="' + iconClassNames + '"></span>';
if (pageNo !== this._options.activePage) {
var link = elCreate('a');
link.textContent = StringUtil.addThousandsSeparator(pageNo);
- link.addEventListener('click', this.switchPage.bind(this, pageNo));
+ link.addEventListener(WCF_CLICK_EVENT, this.switchPage.bind(this, pageNo));
listItem.appendChild(link);
}
else {
listItem = elCreate('li');
link = elCreate('a');
- link.addEventListener('click', callbackClick);
+ link.addEventListener(WCF_CLICK_EVENT, callbackClick);
link.className = 'box16';
link.innerHTML = '<span>' + user.icon + '</span> <span>' + user.label + '</span>';
elData(link, 'user-id', user.objectID);
throw new Error("Expected a valid callback for option 'callbackSelect'.");
}
- this._element.addEventListener('click', function(event) { event.stopPropagation(); });
+ this._element.addEventListener(WCF_CLICK_EVENT, function(event) { event.stopPropagation(); });
this._element.addEventListener('keydown', this._keyDown.bind(this));
this._element.addEventListener('keyup', this._keyUp.bind(this));
},
anchor = elCreate('a');
anchor.textContent = item.label;
elData(anchor, 'object-id', item.objectID);
- anchor.addEventListener('click', this._select.bind(this));
+ anchor.addEventListener(WCF_CLICK_EVENT, this._select.bind(this));
listItem = elCreate('li');
if (i === 0) listItem.className = 'active';
// bind listeners
this._tabs.forEach((function(tab) {
if (!oldTabs || oldTabs.get(elData(tab, 'name')) !== tab) {
- tab.children[0].addEventListener('click', this._onClick.bind(this));
+ tab.children[0].addEventListener(WCF_CLICK_EVENT, this._onClick.bind(this));
}
}).bind(this));
element.addEventListener('mouseenter', this._mouseEnter.bind(this));
element.addEventListener('mouseleave', this._mouseLeave.bind(this));
- element.addEventListener('click', this._mouseLeave.bind(this));
+ element.addEventListener(WCF_CLICK_EVENT, this._mouseLeave.bind(this));
}
}
},