Permalink
Browse files

support browserify loader

  • Loading branch information...
1 parent ecbb1a6 commit a3d9d4d959b4139ef18103e2be9db45722da7f90 @brandonaaron committed Oct 21, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 jquery.bgiframe.js
View
@@ -10,6 +10,9 @@
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
+ } else if (typeof exports === 'object') {
+ // Node/CommonJS style for Browserify
+ module.exports = factory;
} else {
// Browser globals
factory(jQuery);

0 comments on commit a3d9d4d

Please sign in to comment.