madebymany/sir-trevor-js — pull request #196 by pdufour (2014-04-03 20:57:25+00:00)
Title: Adds UMD & Component support

I originally made this without looking at the existing PRs, but then I looked when I was getting ready to do the PR, and saw https://github.com/madebymany/sir-trevor-js/pull/191. I added the component code from there, but kept the UMD code the same since there are some important distinctions:
* sir-trevor defined as named module. See https://github.com/jquery/jquery/blob/master/src/exports/amd.js
* jQuery loaded from global.jQuery in `} else if (typeof exports !== 'undefined') {` context. This is because if you are "browserifying" (https://github.com/substack/node-browserify) sir-trevor-js, and add `require('jquery')` this will inline the entire jQuery library. But typically you will have already loaded jQuery, so instead it's checked via global.jQuery (browserfied becomes window.jQuery)