diff options
| author | Misko Hevery | 2012-03-09 15:19:24 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2012-03-11 21:31:34 -0700 | 
| commit | 488a03631eb69794fd158f3f0df34d936084aec4 (patch) | |
| tree | c0916ff487c397b62e7fbcee4ee6a78575c3a831 | |
| parent | 716dd5f3f90f853713706aa3b404822fef18ef93 (diff) | |
| download | angular.js-488a03631eb69794fd158f3f0df34d936084aec4.tar.bz2 | |
Mostly Revert "fix(docs): directive events + cleanup"
This reverts commit 8fb34f008eca4d1e15e6fa63902aaa36d199c4af.
| -rw-r--r-- | docs/src/ngdoc.js | 18 | ||||
| -rw-r--r-- | src/directive/input.js | 12 | 
2 files changed, 24 insertions, 6 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index efd5afd8..6cbf816c 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -446,6 +446,24 @@ 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 = []; diff --git a/src/directive/input.js b/src/directive/input.js index 16d8f6c8..cccfb675 100644 --- a/src/directive/input.js +++ b/src/directive/input.js @@ -7,7 +7,7 @@ var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;  var inputType = {    /** -   * @ngdoc directive +   * @ngdoc inputType     * @name angular.module.ng.$compileProvider.directive.input.text     *     * @description @@ -73,7 +73,7 @@ var inputType = {    /** -   * @ngdoc directive +   * @ngdoc inputType     * @name angular.module.ng.$compileProvider.directive.input.number     *     * @description @@ -141,7 +141,7 @@ var inputType = {    /** -   * @ngdoc directive +   * @ngdoc inputType     * @name angular.module.ng.$compileProvider.directive.input.url     *     * @description @@ -206,7 +206,7 @@ var inputType = {    /** -   * @ngdoc directive +   * @ngdoc inputType     * @name angular.module.ng.$compileProvider.directive.input.email     *     * @description @@ -269,7 +269,7 @@ var inputType = {    /** -   * @ngdoc directive +   * @ngdoc inputType     * @name angular.module.ng.$compileProvider.directive.input.radio     *     * @description @@ -310,7 +310,7 @@ var inputType = {    /** -   * @ngdoc directive +   * @ngdoc inputType     * @name angular.module.ng.$compileProvider.directive.input.checkbox     *     * @description  | 
