docs: function (element, policy, attribute) {
  
          if (policy === POLICY_IN || policy === POLICY_BOTH) {
              if (!element["__update" + attribute]) {
                  var self = element;
                  element["__update" + attribute] = function () {
                      // setTimeout fix because of safari iOS bug: height and width are set after event is triggered
                      setTimeout(function () {
                          self.set(attribute, self.$el[attributeMap[attribute]]);
                      }, 1);
                  };
                  element.dom(element.$stage.$window).bindDomEvent('resize', element["__update" + attribute]);
              }
          } else {
              if (element["__update" + attribute]) {
                  element.dom(element.$stage.$window).unbindDomEvent('resize', element["__update" + attribute]);
                  delete element["__update" + attribute];
              }
          }
  
      }