فهرست منبع

If a named style can't be determined, return null

Previously this would return `style` if it couldn't be resolved and
the `style` attribute on the element is set for some reason. Now it
will return `null`, because it tried to resolve the width but was
not able to. This will allow it to fall back to `element` by default,
or not set the width at all.

This closes https://github.com/select2/select2/issues/2935.
Kevin Brown 10 سال پیش
والد
کامیت
2f4cc19cd9
7فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 2 0
      dist/js/select2.amd.full.js
  2. 2 0
      dist/js/select2.amd.js
  3. 2 0
      dist/js/select2.full.js
  4. 0 0
      dist/js/select2.full.min.js
  5. 2 0
      dist/js/select2.js
  6. 0 0
      dist/js/select2.min.js
  7. 2 0
      src/js/select2/core.js

+ 2 - 0
dist/js/select2.amd.full.js

@@ -4045,6 +4045,8 @@ define('select2/core',[
           return matches[1];
         }
       }
+
+      return null;
     }
 
     return method;

+ 2 - 0
dist/js/select2.amd.js

@@ -4045,6 +4045,8 @@ define('select2/core',[
           return matches[1];
         }
       }
+
+      return null;
     }
 
     return method;

+ 2 - 0
dist/js/select2.full.js

@@ -13580,6 +13580,8 @@ define('select2/core',[
           return matches[1];
         }
       }
+
+      return null;
     }
 
     return method;

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/js/select2.full.min.js


+ 2 - 0
dist/js/select2.js

@@ -4473,6 +4473,8 @@ define('select2/core',[
           return matches[1];
         }
       }
+
+      return null;
     }
 
     return method;

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/js/select2.min.js


+ 2 - 0
src/js/select2/core.js

@@ -151,6 +151,8 @@ define([
           return matches[1];
         }
       }
+
+      return null;
     }
 
     return method;

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است