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", "./escape-selector",
"./focusable", "./focusable",
"./form", "./form",
"./ie",
"./version" "./version"
], factory ); ], factory );
} else { } 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 is deprecated. Use $.widget() extensions instead.
$.ui.plugin = { $.ui.plugin = {
add: function( module, option, set ) { 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. // AMD. Register as an anonymous module.
define([ define([
"jquery", "jquery",
"./ie",
"./version", "./version",
"./widget" "./widget"
], factory ); ], factory );

View File

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