Skip to content

Commit

Permalink
Fix the Tabs.OnReplaced listener
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Dec 12, 2016
1 parent 506d60e commit ac0180e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabs.go
Expand Up @@ -212,7 +212,7 @@ func (t *Tabs) OnRemoved(callback func(tabId int, removeInfo Object)) {

// OnReplaced fired when a tab is replaced with another tab due to prerendering or instant.
func (t *Tabs) OnReplaced(callback func(addedTabId int, removedTabId int)) {
t.o.Get("OnReplaced").Call("addListener", callback)
t.o.Get("onReplaced").Call("addListener", callback)
}

// OnZoomChange fired when a tab is zoomed.
Expand Down

0 comments on commit ac0180e

Please sign in to comment.