On Fri, Apr 23, 2010 at 20:33, Andrew Dupont wrote:
> I think jQuery figured out a solution for this — care to do some research,
> Mislav?
>
I remember their release notes, and I did a lot of research too. They use
click+keypress.
--
You received this message because you are subscribed to the G
I think jQuery figured out a solution for this — care to do some research,
Mislav?
Cheers,
Andrew
On Apr 23, 2010, at 12:45 PM, Mislav Marohnić wrote:
> The "submit" event doesn't bubble up in Internet Explorer after it originates
> in a form. That makes it impossible to catch with event dele
The "submit" event doesn't bubble up in Internet Explorer after it
originates in a form. That makes it impossible to catch with event
delegation:
document.on("submit", function(e) { ... })
Kangax wrote about a way we can detect even support without browser
sniffing:
http://perfectionkills.com/det
I like this. I don't particularly care what we call it.
Too late for 1.7, naturally, but perhaps 1.7.1 or 1.8...
Cheers,
Andrew
On Apr 23, 2010, at 10:15 AM, Mislav Marohnić wrote:
> On Fri, Apr 23, 2010 at 15:00, Titi Alailima wrote:
>
> "debounce" is a technical term, and it refers to the v
On Fri, Apr 23, 2010 at 15:00, Titi Alailima wrote:
>
> "debounce" is a technical term, and it refers to the very case that you are
> trying to handle.
>
Thanks, Titi, for the insightful explanation.
Here is how I would implement a real throttle method:
Function.prototype.throttle = function
I have used something like this in a project as well. I wouldn't mind
seeing it in core. I don't particularly care what its called.
Allen Madsen
http://www.allenmadsen.com
On Fri, Apr 23, 2010 at 9:00 AM, Titi Alailima wrote:
> On Fri, Apr 23, 2010 at 6:28 AM, Mislav Marohnić
> wrote:
>>
>> I
On Apr 22, 9:54 am, Matt Foster wrote:
> I've used the Enumerable methods and the core stuff like Function.bind
> and Class.create in whatever ECMA flavor the Adobe programs
> use(Indesign & Photoshop) so I'm sure it's possible to leverage some
> things from prototype in your program.
This may be
On Fri, Apr 23, 2010 at 6:28 AM, Mislav Marohnić
wrote:
> I use it primarily for "keyup" events (where this is absolutely essential),
> but it has other uses.
>
> The feedback I wanted to get here is naming. The jQuery community calls
> this function "debounce", because "throttling" means letting
>
> Thanks, guys. But honestly, it's not something that hasn't be done
before.
> I'm just proposing formalizing it.
>
> About core, that's up to Tobie and Andrew. But what do you guys think
about
> naming? And how would you implement a real throttling function; one that
> lets a call through at
2010/4/23 Nacho Coloma
> That's a step better than my own implementation.
Thanks, guys. But honestly, it's not something that hasn't be done before.
I'm just proposing formalizing it.
About core, that's up to Tobie and Andrew. But what do you guys think about
naming? And how would you implemen
That's a step better than my own implementation. So, will it get into core?
On Fri, Apr 23, 2010 at 12:43 PM, Mislav Marohnić wrote:
> On Fri, Apr 23, 2010 at 12:28, Mislav Marohnić
> wrote:
>
>>
>> Here is my implementation:
>>
>
> I noticed there might be a bug with preserving scope in my ori
On Fri, Apr 23, 2010 at 12:28, Mislav Marohnić wrote:
>
> Here is my implementation:
>
I noticed there might be a bug with preserving scope in my original
implementation. Here is the revised version:
Function.prototype.throttle = function(t) {
var timeout, fn = this
return function() {
I wanted to propose Function#throttle for core, only to find out it was
suggested here on the list exactly a year ago:
On Tue, Apr 21, 2009 at 22:01, Ignacio Coloma wrote:
> Hi, the idea was showcased some time ago in ajaxian:
>
> http://ajaxian.com/archives/delaying-javascript-execution
>
> It'
13 matches
Mail list logo