Commit 8be7e5a1 authored by David Stutz's avatar David Stutz

Merge pull request #463 from nnieslan/master

Added the AMD header for use with require.js module definitions
parents e41eb7e9 6a8f7001
......@@ -5,10 +5,18 @@
*
* 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 (typeof ko !== 'undefined' && ko.bindingHandlers && !ko.bindingHandlers.multiselect) {
ko.bindingHandlers.multiselect = {
after: ['options', 'value', 'selectedOptions'],
......@@ -1331,4 +1339,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