Skip to content

Instantly share code, notes, and snippets.

@awinogradov
Forked from arikon/i-jquery__my-plugin.js
Created February 5, 2014 10:14
Show Gist options
  • Save awinogradov/8820626 to your computer and use it in GitHub Desktop.
Save awinogradov/8820626 to your computer and use it in GitHub Desktop.
// If you are using borschik to expand links (bem make and enb do this for you)
// you could use this hack for any jQuery plugin found in the wild
modules.define('i-jquery__my-plugin', ['jquery'], function(provide, $){
var jQuery = $,
window = {jQuery: jQuery};
/*borschik:include:path/to/jquery-plugin.js*/
provide($);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment