Skip to content

Commit 44c9e94

Browse files
committed
Add Call() wrapper.
1 parent fb45a6e commit 44c9e94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jquery.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ func (j JQuery) Each(fn func(int, interface{})) JQuery {
208208
return j
209209
}
210210

211+
func (j JQuery) Call(name string, args ...interface{}) JQuery {
212+
return NewJQuery( j.o.Call(name, args...) )
213+
}
214+
211215
func (j JQuery) Underlying() *js.Object {
212216
return j.o
213217
}

0 commit comments

Comments
 (0)