'use strict';

function getSize(el) {
  if (!el) {
    return {
      width: 0,
      height: 0
    };
  }
  return {
    width: el.offsetWidth,
    height: el.offsetHeight
  };
}

exports.getSize = getSize;
