Permalink
Browse files

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

Ref #9647
  • Loading branch information...
1 parent 64076ec commit 677fdbf7bef71d12998191e0b97c2c5cd34349be @arschmitz arschmitz committed Jul 15, 2015
Showing with 18 additions and 3 deletions.
  1. +1 −3 ui/core.js
  2. +15 −0 ui/ie.js
  3. +1 −0 ui/mouse.js
  4. +1 −0 ui/sortable.js
View
@@ -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 ) {
View
@@ -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
@@ -18,6 +18,7 @@
// AMD. Register as an anonymous module.
define([
"jquery",
+ "./ie",
"./version",
"./widget"
], factory );
View
@@ -22,6 +22,7 @@
"jquery",
"./core",
"./data",
+ "./ie",
"./mouse",
"./version",
"./widget"

0 comments on commit 677fdbf

Please sign in to comment.