I think that the patternID was a great idea for making sure that the polyfill is only active when it's supposed to be, but since element.backgroundClipPolyfill() only runs on element, it's safe to remove without any side-effects.
This pull request is also backward compatible, as long as the old version doesn't run the method on elements that aren't supposed to be polyfilled (which isn't the intended use for this anyway).
I don't think that there's a use-case for the
patternID
property, since you can easily use the polyfill on multiple unique elements that share a class by using the polyfill method only on the element that you want it active on.I think that the
patternID
was a great idea for making sure that the polyfill is only active when it's supposed to be, but sinceelement.backgroundClipPolyfill()
only runs onelement
, it's safe to remove without any side-effects.This pull request is also backward compatible, as long as the old version doesn't run the method on elements that aren't supposed to be polyfilled (which isn't the intended use for this anyway).