1
0
mirror of synced 2024-11-29 16:16:02 +03:00

Removed hardcoded class names from $.fn.select2. The code now uses the exports accessible through window.Select2 to instantiate widgets, allowing the environment to replace or extend those classes globally.

This commit is contained in:
pj 2014-01-08 18:09:14 +02:00
parent 41c3d4cfc4
commit c22bdd41a0

View File

@ -3185,7 +3185,7 @@ the specific language governing permissions and limitations under the Apache Lic
if ("tags" in opts) {opts.multiple = multiple = true;} if ("tags" in opts) {opts.multiple = multiple = true;}
} }
select2 = multiple ? new window.Select2["class"].multi() : window.Select2["class"].single(); select2 = multiple ? new window.Select2["class"].multi() : new window.Select2["class"].single();
select2.init(opts); select2.init(opts);
} else if (typeof(args[0]) === "string") { } else if (typeof(args[0]) === "string") {