Open cobbdb opened 8 years ago
defineSlot() and load() will need callbacks. One option is to expose a promise:
defineSlot()
load()
harmony.defineSlot({..}).then(function (slot) { // do things with the slot. });
... or with normal callbacks ...
harmony.defineSlot({..}, function (slot) { // do things with the slot. });
The goal is to wrap the api inside of googletag.cmd for stability.
googletag.cmd
Would need to shim promise.. probably save that for a someday wishlist http://caniuse.com/#feat=promises
defineSlot()
andload()
will need callbacks. One option is to expose a promise:... or with normal callbacks ...
The goal is to wrap the api inside of
googletag.cmd
for stability.