Skip to content

Commit 2d1c86e

Browse files
committed
Merge pull request #11 from flimzy/call
Add Call() wrapper.
2 parents fb45a6e + 44c9e94 commit 2d1c86e

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)