This is really great Dave - I've definitely needed something like this
in some of my projects. A couple quick suggestions:
- Using an event name like "fontSizeChange" may make more sense than "jqem".
- Also, it's possible to pass arguments in to an event that's been
triggered, like so:

$.event.trigger("jqem", [ "cur_val", "old_val"]);

meaning that the called function would receive:

function( eventObj, cur_val, old_val ) { ... }

Just a thought.

--John

On 8/21/06, Dave Cardwell <[EMAIL PROTECTED]> wrote:
> Hello there, folks.
>
> While working on the next release of jQMinMax[1] (coming soon) it became
> apparent that I'd need to be notified when the user increased or
> decreased the font size.  I can imagine there are a number of situations
> where this might come in handy, thus I give you jQEM.
>
> The short version: it creates a 'jqem' event that is triggered globally
> whenever a change in the value of 1em in the <body> is detected.  This
> way, you can use jQuery's built in event (bind/unbind) functions.
>
> There are a few more features than that, so you may want to read the
> rather hideous docs at the url below.
>
> [1] http://davecardwell.co.uk/geekery/javascript/jquery/jqminmax/
> [2] http://davecardwell.co.uk/geekery/javascript/jquery/jqem/0.1/
>
>
> Any feedback, requests or suggestions would be fantastic.
>
>
> Best wishes,
> Dave Cardwell ~ http://davecardwell.co.uk/
>
>
>
> P.S. Mr Edwards - I know you read this list, and just wanted to say a
> quick thank you for 'packer'.  It's a fantastic little tool.
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>


-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to