Skip to content

Instantly share code, notes, and snippets.

@iskolbin
Created May 10, 2017 15:30
Show Gist options
  • Save iskolbin/7aa663344b79b40971bc45f140d64d1f to your computer and use it in GitHub Desktop.
Save iskolbin/7aa663344b79b40971bc45f140d64d1f to your computer and use it in GitHub Desktop.
Tiny AMD define implementation only for fast prototyping purposes. Working only in browsers
(function(){var b=window;b.define=function(c,a,d){a=[,b[c]||{}].concat(a.slice(2).map(function(a){b[a]=b[a]||{};return b[a]}));d.apply(null,a);b[c]=a[1]}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment