Mouse events prototype

232 views
Skip to first unread message

Mårten Dolk

unread,
Aug 29, 2011, 11:10:33 AM8/29/11
to Angular
Hi guys,

I created a small mouse event prototype for Angular, do with it what you want...
https://github.com/mdolk/angular.js/commits/mouse-events

It does two things:

1. It adds event handlers for mousedown, mouseup, dblclick, mouseover,
mouseout same way as ng:click

2. Support for capturing the event object. You can write <div
ng:click="e ! doSomething(e)"></div>. The ! syntax is inspired by the
bang operator from actor libraries. (My current implemention puts e in
scope temporary when running the expression, ugly...)

Left to think about is event propagation.

What are your plans regarding supporting more events, is that
something we will see before 1.0?

Cheers!
/Mårten

Mårten Dolk

unread,
Aug 30, 2011, 3:42:43 AM8/30/11
to Angular
Found discussion on event propagation here:
https://github.com/angular/angular.js/issues/259

Milestone marked as post v1.0 :-)

/mårten

2011/8/29 Mårten Dolk <marte...@gmail.com>:

Rusco

unread,
Aug 30, 2011, 9:11:48 AM8/30/11
to angular
Like :-)

Maybe the timeline could be changed to "Pre 1.0" ?





On Aug 30, 8:42 am, Mårten Dolk <marten.d...@gmail.com> wrote:
> Found discussion on event propagation here:https://github.com/angular/angular.js/issues/259
>
> Milestone marked as post v1.0 :-)
>
> /mårten
>
> 2011/8/29 Mårten Dolk <marten.d...@gmail.com>:

Mårten Dolk

unread,
Aug 30, 2011, 11:59:55 AM8/30/11
to ang...@googlegroups.com
Not with my code as is :-)

I understand the Angular guys have enough on their plate before 1.0
and I don't want to add to that. I had an itch to scratch.

/mårten

2011/8/30 Rusco <j.re...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "angular" group.
> To post to this group, send email to ang...@googlegroups.com.
> To unsubscribe from this group, send email to angular+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/angular?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages