From 5efa98361e600ad9392297dd8550a873341fb615 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Tue, 14 Jul 2015 21:59:10 -0400 Subject: [PATCH] Dialog: Move dialog into widgets folder Ref #13885 --- demos/bootstrap.js | 3 ++- tests/unit/dialog/common-deprecated.js | 2 +- tests/unit/dialog/common.js | 2 +- tests/unit/dialog/core.js | 2 +- tests/unit/dialog/deprecated.js | 2 +- tests/unit/dialog/events.js | 2 +- tests/unit/dialog/helper.js | 2 +- tests/unit/dialog/methods.js | 2 +- tests/unit/dialog/options.js | 2 +- ui/{ => widgets}/dialog.js | 27 +++++++++++++------------- 10 files changed, 23 insertions(+), 23 deletions(-) rename ui/{ => widgets}/dialog.js (98%) diff --git a/demos/bootstrap.js b/demos/bootstrap.js index 79566fcef..8cc8d3878 100644 --- a/demos/bootstrap.js +++ b/demos/bootstrap.js @@ -28,7 +28,8 @@ var widgets = [ "accordion", "autocomplete", "button", - "datepicker" + "datepicker", + "dialog" ]; function getPath( module ) { diff --git a/tests/unit/dialog/common-deprecated.js b/tests/unit/dialog/common-deprecated.js index 7b0091277..69153039c 100644 --- a/tests/unit/dialog/common-deprecated.js +++ b/tests/unit/dialog/common-deprecated.js @@ -1,6 +1,6 @@ define( [ "lib/common", - "ui/dialog" + "ui/widgets/dialog" ], function( common ) { common.testWidget( "dialog", { diff --git a/tests/unit/dialog/common.js b/tests/unit/dialog/common.js index 389b2ddff..8722d1753 100644 --- a/tests/unit/dialog/common.js +++ b/tests/unit/dialog/common.js @@ -1,6 +1,6 @@ define( [ "lib/common", - "ui/dialog" + "ui/widgets/dialog" ], function( common ) { common.testWidget( "dialog", { diff --git a/tests/unit/dialog/core.js b/tests/unit/dialog/core.js index 770d9f543..1560c34ac 100644 --- a/tests/unit/dialog/core.js +++ b/tests/unit/dialog/core.js @@ -1,6 +1,6 @@ define( [ "jquery", - "ui/dialog" + "ui/widgets/dialog" ], function( $ ) { // TODO add teardown callback to remove dialogs diff --git a/tests/unit/dialog/deprecated.js b/tests/unit/dialog/deprecated.js index 1f7087c57..2d75cad0d 100644 --- a/tests/unit/dialog/deprecated.js +++ b/tests/unit/dialog/deprecated.js @@ -1,6 +1,6 @@ define( [ "jquery", - "ui/dialog" + "ui/widgets/dialog" ], function( $ ) { module( "dialog (deprecated): options" ); diff --git a/tests/unit/dialog/events.js b/tests/unit/dialog/events.js index 0e48b7afa..13c452501 100644 --- a/tests/unit/dialog/events.js +++ b/tests/unit/dialog/events.js @@ -1,7 +1,7 @@ define( [ "jquery", "./helper", - "ui/dialog" + "ui/widgets/dialog" ], function( $, testHelper ) { module("dialog: events"); diff --git a/tests/unit/dialog/helper.js b/tests/unit/dialog/helper.js index f84d1d624..87ca9c172 100644 --- a/tests/unit/dialog/helper.js +++ b/tests/unit/dialog/helper.js @@ -1,7 +1,7 @@ define( [ "jquery", "lib/helper", - "ui/dialog" + "ui/widgets/dialog" ], function( $, helper ) { return $.extend( helper, { diff --git a/tests/unit/dialog/methods.js b/tests/unit/dialog/methods.js index cee0cd3a7..a730350b1 100644 --- a/tests/unit/dialog/methods.js +++ b/tests/unit/dialog/methods.js @@ -1,6 +1,6 @@ define( [ "jquery", - "ui/dialog" + "ui/widgets/dialog" ], function( $ ) { module("dialog: methods", { diff --git a/tests/unit/dialog/options.js b/tests/unit/dialog/options.js index 6de336fd6..ea0885de9 100644 --- a/tests/unit/dialog/options.js +++ b/tests/unit/dialog/options.js @@ -1,7 +1,7 @@ define( [ "jquery", "./helper", - "ui/dialog", + "ui/widgets/dialog", "ui/effect-blind", "ui/effect-explode" ], function( $, testHelper ) { diff --git a/ui/dialog.js b/ui/widgets/dialog.js similarity index 98% rename from ui/dialog.js rename to ui/widgets/dialog.js index dc6632973..96e004b6c 100644 --- a/ui/dialog.js +++ b/ui/widgets/dialog.js @@ -22,20 +22,19 @@ // AMD. Register as an anonymous module. define( [ "jquery", - "./core", - "./version", - "./keycode", - "./widget", - "./widgets/button", - "./draggable", - "./focusable", - "./mouse", - "./position", - "./resizable", - "./safe-active-element", - "./safe-blur", - "./tabbable", - "./unique-id" + "./button", + "../mouse", + "../resizable", + "../draggable", + "../focusable", + "../keycode", + "../position", + "../safe-active-element", + "../safe-blur", + "../tabbable", + "../unique-id", + "../version", + "../widget" ], factory ); } else {