Umb-editor and Umb-Property-Editor into 1 file
only done to keep backwards compat and avoid dublicate code.
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user