Core: Move $.ui.ie into its own module

Ref #9647
This commit is contained in:
Alexander Schmitz 2015-07-15 17:08:07 -04:00
parent 64076ecfb5
commit 677fdbf7be
4 changed files with 18 additions and 3 deletions

View File

@ -25,6 +25,7 @@
"./escape-selector",
"./focusable",
"./form",
"./ie",
"./version"
], factory );
} else {
@ -238,9 +239,6 @@ if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
};
}
// deprecated
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
$.ui.plugin = {
add: function( module, option, set ) {

15
ui/ie.js Normal file
View File

@ -0,0 +1,15 @@
( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "jquery", "./version" ], factory );
} else {
// Browser globals
factory( jQuery );
}
} ( function( $ ) {
// This file is deprecated
return $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
} ) );

View File

@ -18,6 +18,7 @@
// AMD. Register as an anonymous module.
define([
"jquery",
"./ie",
"./version",
"./widget"
], factory );

View File

@ -22,6 +22,7 @@
"jquery",
"./core",
"./data",
"./ie",
"./mouse",
"./version",
"./widget"