this is a patch for the 1.2.x branch to support people who are stuck on an older version but need to support IE11, only the minimal viable code was backported to avoid changing the behavior of the library.