This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +17
-7
lines changed
1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -907,6 +907,23 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
907
907
} ;
908
908
909
909
Attributes . prototype = {
910
+ /**
911
+ * @ngdoc method
912
+ * @name $compile.directive.Attributes#$normalize
913
+ * @kind function
914
+ *
915
+ * @description
916
+ * Converts all accepted directives format into proper directive name.
917
+ * All of these will become 'myDirective':
918
+ * my:Directive
919
+ * my-directive
920
+ * x-my-directive
921
+ * data-my:directive
922
+ *
923
+ * Also there is special case for Moz prefix starting with upper case letter.
924
+ *
925
+ * @param name Name to normalize
926
+ */
910
927
$normalize : directiveNormalize ,
911
928
912
929
@@ -2485,13 +2502,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2485
2502
var PREFIX_REGEXP = / ^ ( (?: x | d a t a ) [ \: \- _ ] ) / i;
2486
2503
/**
2487
2504
* Converts all accepted directives format into proper directive name.
2488
- * All of these will become 'myDirective':
2489
- * my:Directive
2490
- * my-directive
2491
- * x-my-directive
2492
- * data-my:directive
2493
- *
2494
- * Also there is special case for Moz prefix starting with upper case letter.
2495
2505
* @param name Name to normalize
2496
2506
*/
2497
2507
function directiveNormalize ( name ) {
You can’t perform that action at this time.
0 commit comments