From 7c1942c8f8b079938d6ed3147252acc5395ca22a Mon Sep 17 00:00:00 2001 From: Abraham Date: Thu, 16 Jan 2014 22:42:34 -0800 Subject: [PATCH] Adding priority to documentation for all event directives adding priority to all ng event directives better syntax --- src/ng/directive/ngEventDirs.js | 34 ++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/ng/directive/ngEventDirs.js b/src/ng/directive/ngEventDirs.js index 03da8bc4a8ad..fe68ac758d4b 100644 --- a/src/ng/directive/ngEventDirs.js +++ b/src/ng/directive/ngEventDirs.js @@ -6,7 +6,9 @@ * * @description * The ngClick directive allows you to specify custom behavior when - * an element is clicked. + * an element is clicked. + * + * @priority: 0 * * @element ANY * @param {expression} ngClick {@link guide/expression Expression} to evaluate upon @@ -64,6 +66,8 @@ forEach( * @description * The `ngDblclick` directive allows you to specify custom behavior on a dblclick event. * + * @priority: 0 + * * @element ANY * @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon * a dblclick. (The Event object is available as `$event`) @@ -87,6 +91,8 @@ forEach( * @description * The ngMousedown directive allows you to specify custom behavior on mousedown event. * + * @priority: 0 + * * @element ANY * @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon * mousedown. (Event object is available as `$event`) @@ -110,6 +116,8 @@ forEach( * @description * Specify custom behavior on mouseup event. * + * @priority: 0 + * * @element ANY * @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon * mouseup. (Event object is available as `$event`) @@ -132,6 +140,8 @@ forEach( * @description * Specify custom behavior on mouseover event. * + * @priority: 0 + * * @element ANY * @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon * mouseover. (Event object is available as `$event`) @@ -155,6 +165,8 @@ forEach( * @description * Specify custom behavior on mouseenter event. * + * @priority: 0 + * * @element ANY * @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon * mouseenter. (Event object is available as `$event`) @@ -178,6 +190,8 @@ forEach( * @description * Specify custom behavior on mouseleave event. * + * @priority: 0 + * * @element ANY * @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon * mouseleave. (Event object is available as `$event`) @@ -201,6 +215,8 @@ forEach( * @description * Specify custom behavior on mousemove event. * + * @priority: 0 + * * @element ANY * @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon * mousemove. (Event object is available as `$event`) @@ -224,6 +240,8 @@ forEach( * @description * Specify custom behavior on keydown event. * + * @priority: 0 + * * @element ANY * @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon * keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.) @@ -245,6 +263,8 @@ forEach( * @description * Specify custom behavior on keyup event. * + * @priority: 0 + * * @element ANY * @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon * keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.) @@ -287,6 +307,8 @@ forEach( * @description * Enables binding angular expressions to onsubmit events. * + * @priority: 0 + * * Additionally it prevents the default action (which for form means sending the request to the * server and reloading the current page) **but only if the form does not contain an `action` * attribute**. @@ -340,6 +362,8 @@ forEach( * @description * Specify custom behavior on focus event. * + * @priority: 0 + * * @element window, input, select, textarea, a * @param {expression} ngFocus {@link guide/expression Expression} to evaluate upon * focus. (Event object is available as `$event`) @@ -355,6 +379,8 @@ forEach( * @description * Specify custom behavior on blur event. * + * @priority: 0 + * * @element window, input, select, textarea, a * @param {expression} ngBlur {@link guide/expression Expression} to evaluate upon * blur. (Event object is available as `$event`) @@ -370,6 +396,8 @@ forEach( * @description * Specify custom behavior on copy event. * + * @priority: 0 + * * @element window, input, select, textarea, a * @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon * copy. (Event object is available as `$event`) @@ -390,6 +418,8 @@ forEach( * @description * Specify custom behavior on cut event. * + * @priority: 0 + * * @element window, input, select, textarea, a * @param {expression} ngCut {@link guide/expression Expression} to evaluate upon * cut. (Event object is available as `$event`) @@ -410,6 +440,8 @@ forEach( * @description * Specify custom behavior on paste event. * + * @priority: 0 + * * @element window, input, select, textarea, a * @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon * paste. (Event object is available as `$event`)