Index: third_party/pkg/angular/lib/directive/ng_events.dart |
diff --git a/third_party/pkg/angular/lib/directive/ng_events.dart b/third_party/pkg/angular/lib/directive/ng_events.dart |
index 9141b30679cdb29fb0e325e8bc246b0636d4951f..14c422d3fbc31dd624feb3a6e0ca87a4c62d8086 100644 |
--- a/third_party/pkg/angular/lib/directive/ng_events.dart |
+++ b/third_party/pkg/angular/lib/directive/ng_events.dart |
@@ -77,59 +77,59 @@ part of angular.directive; |
* - [ng-touchstart] |
* - [ng-transitionend] |
*/ |
-@NgDirective(selector: '[ng-abort]', map: const {'ng-abort': '&onAbort'}) |
-@NgDirective(selector: '[ng-beforecopy]', map: const {'ng-beforecopy': '&onBeforeCopy'}) |
-@NgDirective(selector: '[ng-beforecut]', map: const {'ng-beforecut': '&onBeforeCut'}) |
-@NgDirective(selector: '[ng-beforepaste]', map: const {'ng-beforepaste': '&onBeforePaste'}) |
-@NgDirective(selector: '[ng-blur]', map: const {'ng-blur': '&onBlur'}) |
-@NgDirective(selector: '[ng-change]', map: const {'ng-change': '&onChange'}) |
-@NgDirective(selector: '[ng-click]', map: const {'ng-click': '&onClick'}) |
-@NgDirective(selector: '[ng-contextmenu]', map: const {'ng-contextmenu': '&onContextMenu'}) |
-@NgDirective(selector: '[ng-copy]', map: const {'ng-copy': '&onCopy'}) |
-@NgDirective(selector: '[ng-cut]', map: const {'ng-cut': '&onCut'}) |
-@NgDirective(selector: '[ng-doubleclick]', map: const {'ng-doubleclick': '&onDoubleClick'}) |
-@NgDirective(selector: '[ng-drag]', map: const {'ng-drag': '&onDrag'}) |
-@NgDirective(selector: '[ng-dragend]', map: const {'ng-dragend': '&onDragEnd'}) |
-@NgDirective(selector: '[ng-dragenter]', map: const {'ng-dragenter': '&onDragEnter'}) |
-@NgDirective(selector: '[ng-dragleave]', map: const {'ng-dragleave': '&onDragLeave'}) |
-@NgDirective(selector: '[ng-dragover]', map: const {'ng-dragover': '&onDragOver'}) |
-@NgDirective(selector: '[ng-dragstart]', map: const {'ng-dragstart': '&onDragStart'}) |
-@NgDirective(selector: '[ng-drop]', map: const {'ng-drop': '&onDrop'}) |
-@NgDirective(selector: '[ng-error]', map: const {'ng-error': '&onError'}) |
-@NgDirective(selector: '[ng-focus]', map: const {'ng-focus': '&onFocus'}) |
-@NgDirective(selector: '[ng-fullscreenchange]', map: const {'ng-fullscreenchange': '&onFullscreenChange'}) |
-@NgDirective(selector: '[ng-fullscreenerror]', map: const {'ng-fullscreenerror': '&onFullscreenError'}) |
-@NgDirective(selector: '[ng-input]', map: const {'ng-input': '&onInput'}) |
-@NgDirective(selector: '[ng-invalid]', map: const {'ng-invalid': '&onInvalid'}) |
-@NgDirective(selector: '[ng-keydown]', map: const {'ng-keydown': '&onKeyDown'}) |
-@NgDirective(selector: '[ng-keypress]', map: const {'ng-keypress': '&onKeyPress'}) |
-@NgDirective(selector: '[ng-keyup]', map: const {'ng-keyup': '&onKeyUp'}) |
-@NgDirective(selector: '[ng-load]', map: const {'ng-load': '&onLoad'}) |
-@NgDirective(selector: '[ng-mousedown]', map: const {'ng-mousedown': '&onMouseDown'}) |
-@NgDirective(selector: '[ng-mouseenter]', map: const {'ng-mouseenter': '&onMouseEnter'}) |
-@NgDirective(selector: '[ng-mouseleave]', map: const {'ng-mouseleave': '&onMouseLeave'}) |
-@NgDirective(selector: '[ng-mousemove]', map: const {'ng-mousemove': '&onMouseMove'}) |
-@NgDirective(selector: '[ng-mouseout]', map: const {'ng-mouseout': '&onMouseOut'}) |
-@NgDirective(selector: '[ng-mouseover]', map: const {'ng-mouseover': '&onMouseOver'}) |
-@NgDirective(selector: '[ng-mouseup]', map: const {'ng-mouseup': '&onMouseUp'}) |
-@NgDirective(selector: '[ng-mousewheel]', map: const {'ng-mousewheel': '&onMouseWheel'}) |
-@NgDirective(selector: '[ng-paste]', map: const {'ng-paste': '&onPaste'}) |
-@NgDirective(selector: '[ng-reset]', map: const {'ng-reset': '&onReset'}) |
-@NgDirective(selector: '[ng-scroll]', map: const {'ng-scroll': '&onScroll'}) |
-@NgDirective(selector: '[ng-search]', map: const {'ng-search': '&onSearch'}) |
-@NgDirective(selector: '[ng-select]', map: const {'ng-select': '&onSelect'}) |
-@NgDirective(selector: '[ng-selectstart]', map: const {'ng-selectstart': '&onSelectStart'}) |
-//@NgDirective(selector: '[ng-speechchange]', map: const {'ng-speechchange': '&onSpeechChange'}) |
-@NgDirective(selector: '[ng-submit]', map: const {'ng-submit': '&onSubmit'}) |
-@NgDirective(selector: '[ng-toucheancel]', map: const {'ng-touchcancel': '&onTouchCancel'}) |
-@NgDirective(selector: '[ng-touchend]', map: const {'ng-touchend': '&onTouchEnd'}) |
-@NgDirective(selector: '[ng-touchenter]', map: const {'ng-touchenter': '&onTouchEnter'}) |
-@NgDirective(selector: '[ng-touchleave]', map: const {'ng-touchleave': '&onTouchLeave'}) |
-@NgDirective(selector: '[ng-touchmove]', map: const {'ng-touchmove': '&onTouchMove'}) |
-@NgDirective(selector: '[ng-touchstart]', map: const {'ng-touchstart': '&onTouchStart'}) |
-@NgDirective(selector: '[ng-transitionend]', map: const {'ng-transitionend': '&onTransitionEnd'}) |
+@Decorator(selector: '[ng-abort]', map: const {'ng-abort': '&onAbort'}) |
+@Decorator(selector: '[ng-beforecopy]', map: const {'ng-beforecopy': '&onBeforeCopy'}) |
+@Decorator(selector: '[ng-beforecut]', map: const {'ng-beforecut': '&onBeforeCut'}) |
+@Decorator(selector: '[ng-beforepaste]', map: const {'ng-beforepaste': '&onBeforePaste'}) |
+@Decorator(selector: '[ng-blur]', map: const {'ng-blur': '&onBlur'}) |
+@Decorator(selector: '[ng-change]', map: const {'ng-change': '&onChange'}) |
+@Decorator(selector: '[ng-click]', map: const {'ng-click': '&onClick'}) |
+@Decorator(selector: '[ng-contextmenu]', map: const {'ng-contextmenu': '&onContextMenu'}) |
+@Decorator(selector: '[ng-copy]', map: const {'ng-copy': '&onCopy'}) |
+@Decorator(selector: '[ng-cut]', map: const {'ng-cut': '&onCut'}) |
+@Decorator(selector: '[ng-doubleclick]', map: const {'ng-doubleclick': '&onDoubleClick'}) |
+@Decorator(selector: '[ng-drag]', map: const {'ng-drag': '&onDrag'}) |
+@Decorator(selector: '[ng-dragend]', map: const {'ng-dragend': '&onDragEnd'}) |
+@Decorator(selector: '[ng-dragenter]', map: const {'ng-dragenter': '&onDragEnter'}) |
+@Decorator(selector: '[ng-dragleave]', map: const {'ng-dragleave': '&onDragLeave'}) |
+@Decorator(selector: '[ng-dragover]', map: const {'ng-dragover': '&onDragOver'}) |
+@Decorator(selector: '[ng-dragstart]', map: const {'ng-dragstart': '&onDragStart'}) |
+@Decorator(selector: '[ng-drop]', map: const {'ng-drop': '&onDrop'}) |
+@Decorator(selector: '[ng-error]', map: const {'ng-error': '&onError'}) |
+@Decorator(selector: '[ng-focus]', map: const {'ng-focus': '&onFocus'}) |
+@Decorator(selector: '[ng-fullscreenchange]', map: const {'ng-fullscreenchange': '&onFullscreenChange'}) |
+@Decorator(selector: '[ng-fullscreenerror]', map: const {'ng-fullscreenerror': '&onFullscreenError'}) |
+@Decorator(selector: '[ng-input]', map: const {'ng-input': '&onInput'}) |
+@Decorator(selector: '[ng-invalid]', map: const {'ng-invalid': '&onInvalid'}) |
+@Decorator(selector: '[ng-keydown]', map: const {'ng-keydown': '&onKeyDown'}) |
+@Decorator(selector: '[ng-keypress]', map: const {'ng-keypress': '&onKeyPress'}) |
+@Decorator(selector: '[ng-keyup]', map: const {'ng-keyup': '&onKeyUp'}) |
+@Decorator(selector: '[ng-load]', map: const {'ng-load': '&onLoad'}) |
+@Decorator(selector: '[ng-mousedown]', map: const {'ng-mousedown': '&onMouseDown'}) |
+@Decorator(selector: '[ng-mouseenter]', map: const {'ng-mouseenter': '&onMouseEnter'}) |
+@Decorator(selector: '[ng-mouseleave]', map: const {'ng-mouseleave': '&onMouseLeave'}) |
+@Decorator(selector: '[ng-mousemove]', map: const {'ng-mousemove': '&onMouseMove'}) |
+@Decorator(selector: '[ng-mouseout]', map: const {'ng-mouseout': '&onMouseOut'}) |
+@Decorator(selector: '[ng-mouseover]', map: const {'ng-mouseover': '&onMouseOver'}) |
+@Decorator(selector: '[ng-mouseup]', map: const {'ng-mouseup': '&onMouseUp'}) |
+@Decorator(selector: '[ng-mousewheel]', map: const {'ng-mousewheel': '&onMouseWheel'}) |
+@Decorator(selector: '[ng-paste]', map: const {'ng-paste': '&onPaste'}) |
+@Decorator(selector: '[ng-reset]', map: const {'ng-reset': '&onReset'}) |
+@Decorator(selector: '[ng-scroll]', map: const {'ng-scroll': '&onScroll'}) |
+@Decorator(selector: '[ng-search]', map: const {'ng-search': '&onSearch'}) |
+@Decorator(selector: '[ng-select]', map: const {'ng-select': '&onSelect'}) |
+@Decorator(selector: '[ng-selectstart]', map: const {'ng-selectstart': '&onSelectStart'}) |
+//@Decorator(selector: '[ng-speechchange]', map: const {'ng-speechchange': '&onSpeechChange'}) |
+@Decorator(selector: '[ng-submit]', map: const {'ng-submit': '&onSubmit'}) |
+@Decorator(selector: '[ng-toucheancel]', map: const {'ng-touchcancel': '&onTouchCancel'}) |
+@Decorator(selector: '[ng-touchend]', map: const {'ng-touchend': '&onTouchEnd'}) |
+@Decorator(selector: '[ng-touchenter]', map: const {'ng-touchenter': '&onTouchEnter'}) |
+@Decorator(selector: '[ng-touchleave]', map: const {'ng-touchleave': '&onTouchLeave'}) |
+@Decorator(selector: '[ng-touchmove]', map: const {'ng-touchmove': '&onTouchMove'}) |
+@Decorator(selector: '[ng-touchstart]', map: const {'ng-touchstart': '&onTouchStart'}) |
+@Decorator(selector: '[ng-transitionend]', map: const {'ng-transitionend': '&onTransitionEnd'}) |
-class NgEventDirective { |
+class NgEvent { |
// Is it better to use a map of listeners or have 29 properties on this |
// object? One would pretty much only assign to one or two of those |
// properties. I'm opting for the map since it's less boilerplate code. |
@@ -137,7 +137,7 @@ class NgEventDirective { |
final dom.Element element; |
final Scope scope; |
- NgEventDirective(this.element, this.scope); |
+ NgEvent(this.element, this.scope); |
// NOTE: Do not use the element.on['some_event'].listen(...) syntax. Doing so |
// has two downsides: |