Commit 55d573f1 authored by Nicholas Nieslanik's avatar Nicholas Nieslanik

Adding require.js / AMD header to allow easy inclusion in module based projects

parent 1782cb98
......@@ -6,8 +6,15 @@
*
* Dual licensed under the BSD-3-Clause and the Apache License, Version 2.0.
*/
!function($) {
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery', 'knockout'], factory);
} else {
// Browser globals
factory(root.jQuery, root.ko);
}
})(this, function ($, ko) {
"use strict";// jshint ;_;
if (Array.prototype.forEach === null || Array.prototype.forEach === undefined) {
......@@ -1088,4 +1095,4 @@
$("select[data-role=multiselect]").multiselect();
});
}(window.jQuery);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment