• Eduardo Sanz García's avatar
    Rename `callback` to `listener` · 1a145742
    Eduardo Sanz García authored
    The word `listener` matches better the internal property names of
    `this.channelListeners` and `this.onConnectListeners`. In addition, it
    helps to differentiate from the `callback` function which is the last
    (optional) argument of the `listener`. The `callback` is used to send
    back a `postMessage` response to the other frame/s.
    1a145742
bridge-test.js 7.74 KB