James
Member since Jan 14, 2009
- Profile: /members/2783-james.htm
- URL: http://james.padolsey.com
- Comments: 11
Recent Blog Comments By James
-
jQuery Event Bindings On Javascript Objects With A Length Property
Posted on Apr 26, 2010 at 9:49 AM
I decided to dig into this myself and I think I've narrowed it down to the jQuery.merge function which is used when you pass ANYTHING with a non-null (not undefined or null) length property as the first argument to $(). jQuery.merge will assume that it's an array-like object and will continue to go... read more »
-
Using jQuery's Animate() Step Callback Function To Create Custom Animations
Posted on Feb 21, 2010 at 4:32 AM
Very nice work! I love these kind of experiments! It seems that you're using the "animate()" method as a pure looping mechanism - i.e. one that will run for the specified duration every 30 or so milliseconds. Since you're not using an easing function, this is just a straight animation loop with equ... read more »
-
jQuery Live() Method And Event Bubbling
Posted on Nov 10, 2009 at 7:23 AM
@Thomas, I believe jQuery 1.4 (yet to be released) will support both the blur and focus events in its "live" mechanism.... read more »
-
Using PushStack() In jQuery Plugins To Create New Collections
Posted on Oct 30, 2009 at 7:44 AM
Nice write-up Ben! Before I knew about pushStack() I used to just return a new jQuery collection, i.e. jQuery.fn.plugin = function(){ return $(something); } It worked in most cases but obviously didn't retain the original jQuery instance. This can be misleading - the jQuery instance really shouldn... read more »
-
June 1st 2009 - 2nd Annual (Inter)?National Regular Expression Day!
Posted on Jun 1, 2009 at 12:09 PM
Block all requests to retweet/digg etc. /please\s+?(RT|retweet|read|digg|stumble|fav|bookmark|upvote|comment)/i And, to block all retweets: /(^|\s)(RT|retweet(ing)?)\s/i... read more »
-
Using Super Constructors Is Critical In Prototypal Inheritance In Javascript
Posted on Apr 17, 2009 at 10:43 AM
Great post Ben! Just ordered "Pro Javascript Design Patterns" off Amazon.... read more »