transact = function transact(e) {
          if (e.data.uid === uid && e.data.postmate === 'reply') {
            _this2.parent.removeEventListener('message', transact, false);

            resolve(e.data.value);
          }
        }
the assignments below ensures that e, data, and value are all defined