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

some changes

parent 741b8fe1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -11,6 +11,8 @@ window.GlPage = {
@instances[className] = new className()
else if args.length is 1
@instances[args[0]] = new args[0]()
else
throw new Error 'You must provide at least one argument'
 
delegate: (targetsObj) ->
(e, data) ->
Loading
Loading
@@ -79,7 +81,7 @@ window.GlPage = {
lastArgIndex = args.length - 1
 
if args.length is 0
@events.forEach((event) =>
$.each(@events, (event) =>
$el = $(event.el)
$el.off(event.type, event.callback)
)
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