add optimization so we don't call callbacks more than once per publish cycle
add optimization so we don't call callbacks more than once per publish cycle

six-sdk/six-javascript-sdk,six-sdk/six-javascript-sdk