From 6e9d6e2199137c2e065c3be6c5b51f0cdba5964a Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Mon, 24 Nov 2014 07:19:40 -0800 Subject: [PATCH] [Common UI] Remove CreateButtonController Remove CreateButtonController; this has been generalized to ClickAwayController in the platform/commonUI/general bundle. WTD-574. --- .../src/creation/CreateButtonController.js | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 platform/commonUI/browse/src/creation/CreateButtonController.js diff --git a/platform/commonUI/browse/src/creation/CreateButtonController.js b/platform/commonUI/browse/src/creation/CreateButtonController.js deleted file mode 100644 index 4762554260..0000000000 --- a/platform/commonUI/browse/src/creation/CreateButtonController.js +++ /dev/null @@ -1,36 +0,0 @@ -/*global define,Promise*/ - -/** - * Module defining CreateController. Created by vwoeltje on 11/10/14. - */ -define( - [], - function () { - "use strict"; - - /** - * - * @constructor - */ - function CreateButtonController($scope, $document) { - function collapse() { - $scope.createState.visible = false; - $scope.$apply("createState.visible"); - $document.off("mouseup", collapse); - return false; - } - - $scope.createState = { visible: false }; - - $scope.toggle = function () { - $scope.createState.visible = !$scope.createState.visible; - if ($scope.createState.visible) { - $document.on("mouseup", collapse); - } - }; - - } - - return CreateButtonController; - } -); \ No newline at end of file