mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-17 03:01:06 +00:00
fix(docs): directive events + cleanup
This commit is contained in:
parent
5d09a1efd3
commit
8fb34f008e
2 changed files with 8 additions and 26 deletions
|
|
@ -412,6 +412,8 @@ Doc.prototype = {
|
||||||
self.html_usage_directiveInfo(dom);
|
self.html_usage_directiveInfo(dom);
|
||||||
self.html_usage_parameters(dom);
|
self.html_usage_parameters(dom);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
self.method_properties_events(dom);
|
||||||
},
|
},
|
||||||
|
|
||||||
html_usage_filter: function(dom){
|
html_usage_filter: function(dom){
|
||||||
|
|
@ -444,24 +446,6 @@ Doc.prototype = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
html_usage_inputType: function(dom){
|
|
||||||
var self = this;
|
|
||||||
dom.h('Usage', function() {
|
|
||||||
dom.code(function() {
|
|
||||||
dom.text('<input type="' + self.shortName + '"');
|
|
||||||
(self.param||[]).forEach(function(param){
|
|
||||||
dom.text('\n ');
|
|
||||||
dom.text(param.optional ? ' [' : ' ');
|
|
||||||
dom.text(param.name);
|
|
||||||
dom.text(BOOLEAN_ATTR[param.name] ? '' : '="..."');
|
|
||||||
dom.text(param.optional ? ']' : '');
|
|
||||||
});
|
|
||||||
dom.text('>');
|
|
||||||
});
|
|
||||||
self.html_usage_parameters(dom);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
html_usage_directiveInfo: function(dom) {
|
html_usage_directiveInfo: function(dom) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var list = [];
|
var list = [];
|
||||||
|
|
@ -660,8 +644,6 @@ var KEYWORD_PRIORITY = {
|
||||||
'.angular.module.ng': 7,
|
'.angular.module.ng': 7,
|
||||||
'.angular.mock': 8,
|
'.angular.mock': 8,
|
||||||
'.angular.directive': 6,
|
'.angular.directive': 6,
|
||||||
'.angular.inputType': 6,
|
|
||||||
'.angular.widget': 6,
|
|
||||||
'.angular.module.ngMock': 8,
|
'.angular.module.ngMock': 8,
|
||||||
'.dev_guide.overview': 1,
|
'.dev_guide.overview': 1,
|
||||||
'.dev_guide.bootstrap': 2,
|
'.dev_guide.bootstrap': 2,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;
|
||||||
var inputType = {
|
var inputType = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc inputType
|
* @ngdoc directive
|
||||||
* @name angular.module.ng.$compileProvider.directive.input.text
|
* @name angular.module.ng.$compileProvider.directive.input.text
|
||||||
*
|
*
|
||||||
* @description
|
* @description
|
||||||
|
|
@ -73,7 +73,7 @@ var inputType = {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc inputType
|
* @ngdoc directive
|
||||||
* @name angular.module.ng.$compileProvider.directive.input.number
|
* @name angular.module.ng.$compileProvider.directive.input.number
|
||||||
*
|
*
|
||||||
* @description
|
* @description
|
||||||
|
|
@ -141,7 +141,7 @@ var inputType = {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc inputType
|
* @ngdoc directive
|
||||||
* @name angular.module.ng.$compileProvider.directive.input.url
|
* @name angular.module.ng.$compileProvider.directive.input.url
|
||||||
*
|
*
|
||||||
* @description
|
* @description
|
||||||
|
|
@ -206,7 +206,7 @@ var inputType = {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc inputType
|
* @ngdoc directive
|
||||||
* @name angular.module.ng.$compileProvider.directive.input.email
|
* @name angular.module.ng.$compileProvider.directive.input.email
|
||||||
*
|
*
|
||||||
* @description
|
* @description
|
||||||
|
|
@ -269,7 +269,7 @@ var inputType = {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc inputType
|
* @ngdoc directive
|
||||||
* @name angular.module.ng.$compileProvider.directive.input.radio
|
* @name angular.module.ng.$compileProvider.directive.input.radio
|
||||||
*
|
*
|
||||||
* @description
|
* @description
|
||||||
|
|
@ -310,7 +310,7 @@ var inputType = {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc inputType
|
* @ngdoc directive
|
||||||
* @name angular.module.ng.$compileProvider.directive.input.checkbox
|
* @name angular.module.ng.$compileProvider.directive.input.checkbox
|
||||||
*
|
*
|
||||||
* @description
|
* @description
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue