From 1b7f204bb3ee6375bf708aff1af4317d82073e07 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 28 Aug 2015 12:57:00 +0200 Subject: [PATCH] refactor umb editor container directive to follow angular style guide --- .../editor/umbeditorcontainer.directive.js | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontainer.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontainer.directive.js index 891bf21cb6..f2903820ee 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontainer.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontainer.directive.js @@ -1,9 +1,18 @@ -angular.module("umbraco.directives.html") - .directive('umbEditorContainer', function () { - return { - transclude: true, - restrict: 'E', - replace: true, - templateUrl: 'views/components/editor/umb-editor-container.html' - }; - }); \ No newline at end of file +(function() { + 'use strict'; + + function EditorContainerDirective() { + + var directive = { + transclude: true, + restrict: 'E', + replace: true, + templateUrl: 'views/components/editor/umb-editor-container.html' + }; + + return directive; + } + + angular.module('umbraco.directives').directive('umbEditorContainer', EditorContainerDirective); + +})();