From 14e1c4d5f92e8bcb4c441d29a0ebc59c876ce1d8 Mon Sep 17 00:00:00 2001
From: Florian Kissling
-$.fn.select2.amd.require( -['select2/data/array', 'select2/utils'], -function (ArrayData, Utils) { +$.fn.select2.amd.require([ + 'select2/data/array', + 'select2/utils' +], function (ArrayData, Utils) { function CustomData ($element, options) { CustomData.__super__.constructor.call(this, $element, options); } @@ -505,9 +506,10 @@ query: function (query) {-$.fn.select2.amd.require( -['select2/data/array', 'select2/utils'], -function (ArrayData, Utils) { +$.fn.select2.amd.require([ + 'select2/data/array', + 'select2/utils' +], function (ArrayData, Utils) { function CustomData ($element, options) { CustomData.__super__.constructor.call(this, $element, options); } @@ -746,5 +748,5 @@ $("select").prop("disabled", true); // instead of $("select").enable(false); diff --git a/docs/examples.html b/docs/examples.html index 4301cfae..e6f60361 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -52,87 +52,95 @@ slug: examples {% include js-source-states.html %} diff --git a/docs/options.html b/docs/options.html index 3edac0b3..e3c19cbd 100644 --- a/docs/options.html +++ b/docs/options.html @@ -32,5 +32,6 @@ slug: options -