Skip to content

Instantly share code, notes, and snippets.

@AaronNGray
Last active October 3, 2018 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AaronNGray/fa28eb17b531b62606f8e44fbe99bf52 to your computer and use it in GitHub Desktop.
Save AaronNGray/fa28eb17b531b62606f8e44fbe99bf52 to your computer and use it in GitHub Desktop.
General patterns for creating windows feature Polyfills
"use strict";
(scope => {
...code...
// exports
scope.X = X;
scope.Y = Y;
})(window.Feature = (window.Feature || {}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment