Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 503dcb0

Browse files
committed
style(jqLite): rename onFn to jqLiteOn
1 parent bf2e238 commit 503dcb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jqLite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ function createEventHandler(element, events) {
719719
forEach({
720720
removeData: jqLiteRemoveData,
721721

722-
on: function onFn(element, type, fn, unsupported){
722+
on: function jqLiteOn(element, type, fn, unsupported){
723723
if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');
724724

725725
// Do not add event handlers to non-elements because they will not be cleaned up.
@@ -750,7 +750,7 @@ forEach({
750750
// Read about mouseenter and mouseleave:
751751
// http://www.quirksmode.org/js/events_mouse.html#link8
752752

753-
onFn(element, MOUSE_EVENT_MAP[type], function(event) {
753+
jqLiteOn(element, MOUSE_EVENT_MAP[type], function(event) {
754754
var target = this, related = event.relatedTarget;
755755
// For mousenter/leave call the handler if related is outside the target.
756756
// NB: No relatedTarget if the mouse left/entered the browser window

0 commit comments

Comments
 (0)