From 12d5aed2839b09d0548d2243f6fd47257ba20d88 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Tue, 14 Jul 2015 21:54:33 -0400 Subject: [PATCH] Accordion: Move accordion into widgets folder Ref #13885 --- demos/bootstrap.js | 4 +++- tests/unit/accordion/common.js | 2 +- tests/unit/accordion/core.js | 2 +- tests/unit/accordion/events.js | 2 +- tests/unit/accordion/helper.js | 2 +- tests/unit/accordion/methods.js | 2 +- tests/unit/accordion/options.js | 2 +- ui/{ => widgets}/accordion.js | 9 ++++----- 8 files changed, 13 insertions(+), 12 deletions(-) rename ui/{ => widgets}/accordion.js (99%) diff --git a/demos/bootstrap.js b/demos/bootstrap.js index 7fed08cbb..af9aee130 100644 --- a/demos/bootstrap.js +++ b/demos/bootstrap.js @@ -24,7 +24,9 @@ var effectsAll = [ "effect-size", "effect-slide" ]; -var widgets = []; +var widgets = [ + "accordion" +]; function getPath( module ) { for ( var i = 0; i < widgets.length; i++ ) { diff --git a/tests/unit/accordion/common.js b/tests/unit/accordion/common.js index 8a859f0ca..1a8ce55c4 100644 --- a/tests/unit/accordion/common.js +++ b/tests/unit/accordion/common.js @@ -1,6 +1,6 @@ define( [ "lib/common", - "ui/accordion" + "ui/widgets/accordion" ], function( common ) { common.testWidget( "accordion", { diff --git a/tests/unit/accordion/core.js b/tests/unit/accordion/core.js index 0a3931162..ed538c368 100644 --- a/tests/unit/accordion/core.js +++ b/tests/unit/accordion/core.js @@ -1,7 +1,7 @@ define( [ "jquery", "./helper", - "ui/accordion" + "ui/widgets/accordion" ], function( $, testHelper ) { var setupTeardown = testHelper.setupTeardown, diff --git a/tests/unit/accordion/events.js b/tests/unit/accordion/events.js index fef1a0aac..03aee3434 100644 --- a/tests/unit/accordion/events.js +++ b/tests/unit/accordion/events.js @@ -1,7 +1,7 @@ define( [ "jquery", "./helper", - "ui/accordion" + "ui/widgets/accordion" ], function( $, testHelper ) { var setupTeardown = testHelper.setupTeardown, diff --git a/tests/unit/accordion/helper.js b/tests/unit/accordion/helper.js index 5eb3a4bc3..ec9b7ecb8 100644 --- a/tests/unit/accordion/helper.js +++ b/tests/unit/accordion/helper.js @@ -1,7 +1,7 @@ define( [ "jquery", "lib/helper", - "ui/accordion" + "ui/widgets/accordion" ], function( $, helper ) { return $.extend( helper, { diff --git a/tests/unit/accordion/methods.js b/tests/unit/accordion/methods.js index efabfed10..455e80c58 100644 --- a/tests/unit/accordion/methods.js +++ b/tests/unit/accordion/methods.js @@ -1,7 +1,7 @@ define( [ "jquery", "./helper", - "ui/accordion" + "ui/widgets/accordion" ], function( $, testHelper ) { var equalHeight = testHelper.equalHeight, diff --git a/tests/unit/accordion/options.js b/tests/unit/accordion/options.js index 52d54ed32..06248d6cb 100644 --- a/tests/unit/accordion/options.js +++ b/tests/unit/accordion/options.js @@ -1,7 +1,7 @@ define( [ "jquery", "./helper", - "ui/accordion" + "ui/widgets/accordion" ], function( $, testHelper ) { var equalHeight = testHelper.equalHeight, diff --git a/ui/accordion.js b/ui/widgets/accordion.js similarity index 99% rename from ui/accordion.js rename to ui/widgets/accordion.js index fdc092f98..88e9bdb6f 100644 --- a/ui/accordion.js +++ b/ui/widgets/accordion.js @@ -22,11 +22,10 @@ // AMD. Register as an anonymous module. define( [ "jquery", - "./version", - "./version", - "./keycode", - "./unique-id", - "./widget" + "../version", + "../keycode", + "../unique-id", + "../widget" ], factory ); } else { -- 2.39.5