Skip to content

Commit

Permalink
Core: Move $.ui.ie into its own module
Browse files Browse the repository at this point in the history
Ref #9647
  • Loading branch information
arschmitz committed Aug 8, 2015
1 parent 64076ec commit 677fdbf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
4 changes: 1 addition & 3 deletions ui/core.js
Expand Up @@ -25,6 +25,7 @@
"./escape-selector",
"./focusable",
"./form",
"./ie",
"./version"
], factory );
} else {
Expand Down Expand Up @@ -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 ) {
Expand Down
15 changes: 15 additions & 0 deletions ui/ie.js
@@ -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() );
} ) );
1 change: 1 addition & 0 deletions ui/mouse.js
Expand Up @@ -18,6 +18,7 @@
// AMD. Register as an anonymous module.
define([
"jquery",
"./ie",
"./version",
"./widget"
], factory );
Expand Down
1 change: 1 addition & 0 deletions ui/sortable.js
Expand Up @@ -22,6 +22,7 @@
"jquery",
"./core",
"./data",
"./ie",
"./mouse",
"./version",
"./widget"
Expand Down

0 comments on commit 677fdbf

Please sign in to comment.