Umb-editor and Umb-Property-Editor into 1 file

only done to keep backwards compat and avoid dublicate code.
This commit is contained in:
Per Ploug
2015-06-24 12:52:27 +02:00
parent c9008c9946
commit 933f97fef7

View File

@@ -5,8 +5,9 @@
* @requires formController
* @restrict E
**/
angular.module("umbraco.directives")
.directive('umbPropertyEditor', function (umbPropEditorHelper) {
//share property editor directive function
var _umbPropertyEditor = function (umbPropEditorHelper) {
return {
scope: {
model: "=",
@@ -33,4 +34,8 @@ angular.module("umbraco.directives")
});
}
};
});
};
//Preffered is the umb-property-editor as its more explicit - but we keep umb-editor for backwards compat
angular.module("umbraco.directives").directive('umbPropertyEditor', _umbPropertyEditor);
angular.module("umbraco.directives").directive('umbEditor', _umbPropertyEditor);