refactor umb editor toolbar directive to follow angular style guide

This commit is contained in:
Mads Rasmussen
2015-08-28 13:05:01 +02:00
parent 8219429cc1
commit 58c0127b6e

View File

@@ -1,11 +1,20 @@
angular.module("umbraco.directives")
.directive('umbEditorToolbar', function () {
return {
restrict: 'E',
replace: true,
templateUrl: 'views/components/editor/umb-editor-toolbar.html',
scope: {
tools: "="
}
};
});
(function() {
'use strict';
function EditorToolbarDirective() {
var directive = {
restrict: 'E',
replace: true,
templateUrl: 'views/components/editor/umb-editor-toolbar.html',
scope: {
tools: "="
}
};
return directive;
}
angular.module('umbraco.directives').directive('umbEditorToolbar', EditorToolbarDirective);
})();