]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Move $.ui.ie into its own module
authorAlexander Schmitz <arschmitz@gmail.com>
Wed, 15 Jul 2015 21:08:07 +0000 (17:08 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Sat, 8 Aug 2015 04:29:36 +0000 (00:29 -0400)
Ref #9647

ui/core.js
ui/ie.js [new file with mode: 0644]
ui/mouse.js
ui/sortable.js

index fc91c274220b68463f1791b23411b507284ffcdd..006011f3c458fd89579da24626b685ba13d2222b 100644 (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 ) {
diff --git a/ui/ie.js b/ui/ie.js
new file mode 100644 (file)
index 0000000..1ce6a84
--- /dev/null
+++ b/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() );
+} ) );
index e197fd60aa80ce1b88fea4ced78b56b627fb1197..a48a799c5ee4ad62e8278a696c318c089ac59e12 100644 (file)
@@ -18,6 +18,7 @@
                // AMD. Register as an anonymous module.
                define([
                        "jquery",
+                       "./ie",
                        "./version",
                        "./widget"
                ], factory );
index 8bd267649cdd642d77a56e318ea2eb3a44f6d4ad..2258e3c62cdd43c466b516d6292b3527344dd911 100644 (file)
@@ -22,6 +22,7 @@
                        "jquery",
                        "./core",
                        "./data",
+                       "./ie",
                        "./mouse",
                        "./version",
                        "./widget"