Skip to content
Snippets Groups Projects
Commit 741b8fe1 authored by Arinde Eniola's avatar Arinde Eniola
Browse files

make some changes

parent 5a10f38a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -20,7 +20,7 @@ window.GlPage = {
for selector, callback of targetsObj
children = $currentTarget.find(selector)
if !e.isPropagationStopped() && children.length
data ?= {}
data = {} if not data
e.currentTarget = data.el = children[0]
callback.apply(e.currentTarget, [e, data])
 
Loading
Loading
@@ -38,8 +38,7 @@ window.GlPage = {
$element = selector
event = eventType
 
if not data
data = {}
data = {} if not data
 
if event.defaultCallback
defaultFunc = event.defaultCallback
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment