Browse Source

Add `;` before beginning of factory wrapper (#5089)

Adding ending statement at the start of the code as absence of that causes console error while concatenating files.
alexweissman 7 năm trước cách đây
mục cha
commit
18929d6e5a
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 0
      CHANGELOG.md
  2. 1 1
      src/js/wrapper.start.js

+ 1 - 0
CHANGELOG.md

@@ -3,6 +3,7 @@
 ## 4.0.6
 
 ### Bug fixes
+- Add `;` before beginning of factory wrapper (#5089)
 - Clear tooltip from `select2-selection__rendered` when selection is cleared (#4746)
 - Fix keyboard not closing when closing dropdown on iOS 10 (#4680)
 - User-defined types not normalized properly when passed in as data (#4632)

+ 1 - 1
src/js/wrapper.start.js

@@ -5,7 +5,7 @@
  * Released under the MIT license
  * https://github.com/select2/select2/blob/master/LICENSE.md
  */
-(function (factory) {
+;(function (factory) {
   if (typeof define === 'function' && define.amd) {
     // AMD. Register as an anonymous module.
     define(['jquery'], factory);