Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions jquery.iframe-transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,20 @@

// ## Annotated Source

(function($, undefined) {
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS:
factory(
require('jquery')
);
} else {
// Browser globals
factory(jQuery);
}
}(function($, undefined) {
"use strict";

// Register a prefilter that checks whether the `iframe` option is set, and
Expand Down Expand Up @@ -244,4 +257,4 @@
}
});

})(jQuery);
}));