fix(docs): directive events + cleanup

This commit is contained in:
Igor Minar 2012-03-08 16:19:56 -08:00
parent 5d09a1efd3
commit 8fb34f008e
2 changed files with 8 additions and 26 deletions

View file

@ -412,6 +412,8 @@ Doc.prototype = {
self.html_usage_directiveInfo(dom);
self.html_usage_parameters(dom);
});
self.method_properties_events(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) {
var self = this;
var list = [];
@ -660,8 +644,6 @@ var KEYWORD_PRIORITY = {
'.angular.module.ng': 7,
'.angular.mock': 8,
'.angular.directive': 6,
'.angular.inputType': 6,
'.angular.widget': 6,
'.angular.module.ngMock': 8,
'.dev_guide.overview': 1,
'.dev_guide.bootstrap': 2,

View file

@ -7,7 +7,7 @@ var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;
var inputType = {
/**
* @ngdoc inputType
* @ngdoc directive
* @name angular.module.ng.$compileProvider.directive.input.text
*
* @description
@ -73,7 +73,7 @@ var inputType = {
/**
* @ngdoc inputType
* @ngdoc directive
* @name angular.module.ng.$compileProvider.directive.input.number
*
* @description
@ -141,7 +141,7 @@ var inputType = {
/**
* @ngdoc inputType
* @ngdoc directive
* @name angular.module.ng.$compileProvider.directive.input.url
*
* @description
@ -206,7 +206,7 @@ var inputType = {
/**
* @ngdoc inputType
* @ngdoc directive
* @name angular.module.ng.$compileProvider.directive.input.email
*
* @description
@ -269,7 +269,7 @@ var inputType = {
/**
* @ngdoc inputType
* @ngdoc directive
* @name angular.module.ng.$compileProvider.directive.input.radio
*
* @description
@ -310,7 +310,7 @@ var inputType = {
/**
* @ngdoc inputType
* @ngdoc directive
* @name angular.module.ng.$compileProvider.directive.input.checkbox
*
* @description