[jquery-dev] Re: Context of replaceWith(function) callback is broken in 1.4

2010-01-14 Thread ajpiano
Since it doesn't yield the same result as wrapInner(html), i just filed a ticket on wrapInner(fn); http://dev.jquery.com/ticket/5799 On Jan 13, 9:42 pm, ajpiano wrote: > I've also been taking a look at wrapInner(function), which is > essentially .contents().wrapAll(function

[jquery-dev] Re: Context of replaceWith(function) callback is broken in 1.4

2010-01-13 Thread ajpiano
have a half-written ticket on this too, but wasn't so sure it actually needs "correcting." On Jan 13, 9:04 pm, ajpiano wrote: > No problem. > > http://dev.jquery.com/ticket/5798 > > On Jan 13, 8:21 pm, Dave Methvin wrote: > > > > > > This seems like bug

[jquery-dev] Re: Context of replaceWith(function) callback is broken in 1.4

2010-01-13 Thread ajpiano
No problem. http://dev.jquery.com/ticket/5798 On Jan 13, 8:21 pm, Dave Methvin wrote: > > This seems like bug territory.  Wish I'd found this earlier. > > Can you file a ticket on this? It does seem wrong. -- You received this message because you are subscribed to the Google Groups "jQuery Dev

[jquery-dev] Context of replaceWith(function) callback is broken in 1.4

2010-01-13 Thread ajpiano
The context of the callback function is not right when you use replaceWith(function); $("h3").replaceWith(function(i) { console.log(this); return ""+$(this).html()+""; //broke because the next element of my h3 was coming up as a textnode.

[jquery-dev] Re: bug in jQuery 1.4rc1

2010-01-13 Thread ajpiano
The fact that $("*").bind() is WAY worse than $(document).bind() really ought to be shouted from the rooftops. On Jan 13, 11:46 am, John Resig wrote: > Well, before we had a very "non-silent" failure - and that was causing > his, and others, applications to break. I'm a firm believer that good >

[jquery-dev] Re: jQuery.event.special['type'].add modifies handler of other types

2010-01-13 Thread ajpiano
http://dev.jquery.com/ticket/5779 For those who don't feel like searching anymore... On Jan 13, 9:48 am, helianthus wrote: > John Arrowwood was kind enough to do it for > me:http://groups.google.com/group/jquery-dev/browse_thread/thread/dba343... > > But I thought this could be fixed before the

[jquery-dev] Re: Discussion on using event.which for mouse button

2010-01-11 Thread ajpiano
It is definitely odd that which is standardised in mouse button events, but button is not. On Jan 11, 12:01 pm, helianthus wrote: > http://github.com/jquery/jquery/blob/master/src/event.js#L401 > > I did not know that there has been normalization for event.which until > looking up the new API bro

[jquery-dev] Re: Any thought on Event filter?

2010-01-04 Thread ajpiano
This strikes me as almost a little bit too much sugar...to streamline this type of binding/filtering, I tend to think it might just be easier to perhaps use the jQuery.ui.keyCode object and move that into core, perhaps? I think the idea is to save people needing to do the keycode lookups, not nece

[jquery-dev] Re: Change "this" when binding element

2009-12-29 Thread ajpiano
+1 On Dec 29, 4:39 pm, Peter Higgins wrote: > ajpiano wrote: > > That said, and while I do love (and frequently recommend) $.hitch, I > > prefer an approach more like Prototype or Underscore's that doesn't > > involve passing so many strings. > > > --ada

[jquery-dev] Re: Change "this" when binding element

2009-12-29 Thread ajpiano
I love the idea of extending scope manipulation to any function, rather than only event handlers. Callbacks to ajax requests often need a better scope than the XHR, and while I look forward to 1.4's functionality for event handlers, it would really be a shame to continue to force people to use non

[jquery-dev] Re: $.fn.contains is not consistent with :contains

2009-12-28 Thread ajpiano
; >>>> then yeah, consider .contains() gone (and a jQuery.contains will be > >>>> provided for those that need a lightweight method). > > >>>> --John > > >>> But if .has() returns a boolean, then we have the same problem   > &

[jquery-dev] Re: IRC

2009-12-23 Thread ajpiano
PS. Enjoy your kneecaps for the rest of the holiday season... On Dec 23, 9:17 pm, ajpiano wrote: > > Naturally #jquery is still the best place for general Q&A. > > Or for being kind and charitable and giving support to those who need > it ;) > > --adam > > On Dec

[jquery-dev] Re: IRC

2009-12-23 Thread ajpiano
> Naturally #jquery is still the best place for general Q&A. Or for being kind and charitable and giving support to those who need it ;) --adam On Dec 21, 11:18 pm, John Resig wrote: > #jquery-dev isn't very active - amusingly the most active place for > jQuery dev discussion is #jquery-ot (for

[jquery-dev] Re: $.fn.contains is not consistent with :contains

2009-12-16 Thread ajpiano
s(). Hmm. If .has() returns a boolean > then yeah, consider .contains() gone (and a jQuery.contains will be > provided for those that need a lightweight method). > > --John > > > > On Wed, Dec 16, 2009 at 11:04 PM, ajpiano wrote: > > It seems like a matter of course t

[jquery-dev] $.fn.contains is not consistent with :contains

2009-12-16 Thread ajpiano
It seems like a matter of course that means of filtering that are exposed as both pseudoselectors and methods on the jQuery prototype return the same set of elements, or at least that they generally apply the same principle in filtering. Examples include eq, not, first, last, and has. While the :

[jquery-dev] Re: New $() behaviour

2009-12-13 Thread ajpiano
Dec 13, 8:24 pm, John Resig wrote: > > > > > The most frequent case I've seen is $().ready() (which still works and > > I plan on continuing to make work, at least for the time being). I > > haven't really seen other cases being used in the wild - do you have >

[jquery-dev] New $() behaviour

2009-12-13 Thread ajpiano
A recent commit - http://github.com/jquery/jquery/commit/04524287d3e0112deae570ff9247c734833431bb - changed the behaviour of $() from $(document) to $([]). This is a change that I can truly jibe with, and I think the behaviour makes sense. No one likes having to do $([]) to create an empty jQuery

[jquery-dev] Inconsistency between 1.3.2 and 1.4a

2009-12-10 Thread ajpiano
Not sure if this merits a ticket because it ventures off into the world of "things that people don't actually do," but I figured it was at least worth a mention. in jQuery 1.3.2 var foo = $("foo").parent() // returns a DIV wrapped with jQuery, and accordingly foo.find("span").length === 1; in jQu

[jquery-dev] Re: What would you call jQuery's design patterns / principals?

2009-08-31 Thread ajpiano
The "Write Less, Do More" tagline comes to mind. By standardising common, low-level tasks, jQuery allows the ambitious JavaScript developer to focus on functionality rather than reinventing the wheel in project after project. On Aug 30, 11:58 pm, Erik Reppen wrote: > and  _$ and _jQuery > > :)

[jquery-dev] Re: Help

2009-08-19 Thread ajpiano
This discussion is more appropriate to the jQuery general discussion list, http://groups.google.com/group/jquery-en On Aug 18, 5:59 am, lrbabe wrote: > A link to your website could be helpful > > On Aug 18, 7:39 am, Samer Ziadeh wrote: > > > could be positioning or floats of the element, if so

[jquery-dev] Re: The Context property/parameter

2009-08-19 Thread ajpiano
should be doing this instead? > > var content = $('#content')[0]; > $('.posts', content); > > > > On Mon, Aug 17, 2009 at 14:30, ajpiano wrote: > > > Thanks for clarifying this.  The very same section in Brandon's post > > had me

[jquery-dev] Re: The Context property/parameter

2009-08-17 Thread ajpiano
Thanks for clarifying this. The very same section in Brandon's post had me confused, and also had me writing $(".these",$those[0]) since. On Aug 16, 4:46 am, James Padolsey wrote: > Thanks for your reply John. :) > > On Aug 14, 1:24 pm, John Resig wrote: > > > > That can't be true, right? It d

[jquery-dev] Re: My solution for legacy web applications demanding IE6

2009-07-22 Thread ajpiano
It has been repeatedly stated that jQuery has NO plans to drop support for IE7, and that pretty much everything in jQuery that is there for IE7 also is there for IE6, meaning that support for the two pretty much comes in tandem. IE6 is a bitch to develop for, we all know that, but I don't think w

[jquery-dev] Re: jquery just decidecd to stop working :/

2009-06-11 Thread ajpiano
This list is not for the discussion of the use of jQuery, but rather for its development. Use the http://groups.google.com/group/jquery-en list for discussion of this type. Most likely the two libraries are conflicting. Look into jQuery.noConflict(). On Jun 10, 1:20 pm, youradds wrote: > Ok,

[jquery-dev] Re: conditional chaining, reincarnated

2009-06-04 Thread ajpiano
caching of jQuery objects, it's not > enough to use 'any' selector once if you depend on highly-modified DOMs you > would always have to repeat the search. > > > > On Wed, Jun 3, 2009 at 2:25 PM, ajpiano wrote: > > > In all honesty, this was a functionality

[jquery-dev] Re: conditional chaining, reincarnated

2009-06-03 Thread ajpiano
In all honesty, this was a functionality I was hot for maybe a year ago, but probably wouldn't need much today. I cache collections all the time, and I recommend it highly to new users. Users of jQuery should be WAY more aware of the simple fact that $() is a constructor, but many are not. If t

[jquery-dev] conditional chaining, reincarnated

2009-06-02 Thread ajpiano
Over the years there has been considerable interest in providing conditional chaining functionality to jQuery, though nothing has ever been cemented. http://groups.google.com/group/jquery-en/browse_thread/thread/43a69fa41f6e7089/6cebfee318992fe6 http://groups.google.com/group/jquery-dev/browse_th

[jquery-dev] Re: Initialize Form Element

2009-06-01 Thread ajpiano
This question is better suited to the jQuery UI mailing list. http://groups.google.com/group/jquery-ui On Jun 1, 7:20 pm, sAvEoURpLAnET wrote: > Hi, > > I had this code in a single file, and I want to refresh each Dialog > content every time I open it. > > >     maxlength="10" class="my_class"

[jquery-dev] Re: Optional scope for events

2009-05-06 Thread ajpiano
This is definitely useful and necessary. I'd put my two cents for it being called either "scope" or "context," which, though "taken," describe the actual purpose of the additional argument. "pointer" might also be an appropriate name. --adam On May 5, 1:22 pm, Nathan Bubna wrote: > Why not st

[jquery-dev] Re: ADDING METHOD TO OBJECT.PROTOTYPE BREAKS SIZZLE ?

2009-04-26 Thread ajpiano
I tend to think an alternate build being available from the website would tend to be confusing to the average consumer, especially given the fact that Object.prototype "insurance" is a goal for an upcoming release (so I've heard...) It won't be very long before Google grabs this thread and expose

[jquery-dev] Re: jQuery 1.3.2 appendTo change breaks our code.

2009-03-07 Thread ajpiano
It seems like you are attaching information directly to arbitrary jQuery objects, rather than using the .data() method, which from a cursory read seems like it would be appropriate. --adam On Mar 7, 10:02 am, Dave Methvin wrote: > > var button = makeNewButton().addClass('TestButton').appendTo(p

[jquery-dev] Native JSON

2009-02-16 Thread ajpiano
With the advent of native JSON support in browsers forthcoming, should jQuery.support check for the existence of the JSON obj and use it as the preferred way of parsing JSON whenever the library needs to do so? This would have the added benefit of leveraging json2.js for users who already have th

[jquery-dev] Re: selector fails without notice in 1.3.1

2009-02-12 Thread ajpiano
I don't know how much harder the point that @ is gone can be driven home. It was deprecated in 1.2.6. A major problem is bad/outdated tutorials that are still telling people the wrong way. On Feb 12, 10:35 am, David Zhou wrote: > Actually, nevermind.  I forgot there was a changes section: > >

[jquery-dev] Re: .remove() without the event+data stripping

2009-01-30 Thread ajpiano
This may seem close-minded, but I tend to think the need to delete a node from the DOM and hold onto that exact node the way it was when it left the DOM in the event that exact node needs to be re-inserted is kind of a specific implementation that shouldn't be handled natively by .remove(). I've

[jquery-dev] Re: Proposal: Attributed events

2009-01-30 Thread ajpiano
maybe a few jquery event shortuts to specific keycodes/ranges of keycodes, which would provide a meaningful semantic layer, as opposed to further entrenching the spread of ranges of valid numeric keycodes into our jquery events $(...).bind("keydown[enter] keydown[numeric]",fn) or maybe even simp

[jquery-dev] .index() enhancement

2009-01-22 Thread ajpiano
It would be useful to be able to use the .index() method to find the index of the current element in a given set, rather than the current implementation (searching the current set for a given element), which forces the developer to do gyrations in order to find out a simple piece of info. For in

[jquery-dev] Re: Regression jQuery UI 1.6rc4 + jQuery 1.3 : triggerHandler problems

2009-01-15 Thread ajpiano
UI 1.5.3 will never work with jQuery 1.3. That's the whole point. On Jan 15, 3:44 pm, SwimDrewid wrote: > I am finding this to be true with 1.5.3 as well -- I am unable to > trigger the 'receive' handler in a sort method > > On Jan 15, 8:10 am, lrbabe wrote: > > > I'm not very certain about th

[jquery-dev] Re: $.each return value

2009-01-15 Thread ajpiano
http://dev.jquery.com/ticket/3877 The response ths ticket got isn't what I would have expected it to get based on the reactions in this thread? Wha happen? --adam On Dec 18 2008, 8:11 pm, oliver wrote: > I suppose this is only changing thereturnvalue of $.each, not $ > ([elem]).each(), correc

[jquery-dev] Re: jQuery should prevent the need from CSS hacks...

2008-12-08 Thread ajpiano
Seems interesting and if it works more power to ya but I think it's a bit excessive to have jQuery automatically start applying classes to all body tags unconditionally (in order to do something that the developer might not even need). Pretty much the opposite of unobtrusive. On Dec 8, 10:40 am

[jquery-dev] Re: Passing argumets from links to ajax function

2008-11-14 Thread ajpiano
This list is for discussion of the development of the jQuery library itself, for general questions relating to its use please use the general list: http://groups.google.com/group/jquery-en Furthermore, events should be bound to elements, rather than through inline event handlers or "href='javasc

[jquery-dev] Re: jQuery's Data functions

2008-11-14 Thread ajpiano
Similarly nifty would be the ability to select based on metadata, an implementation of which can be found at http://erikandcolleen.com/erik/projects/jquery/metaselector/ and I would tend to think that selecting based on metadata would share a lot of the logic of selecting based on .data() store.

[jquery-dev] Re: ajax success callback

2008-09-23 Thread ajpiano
FWIW, I agree that it should have the same args as the other callbacks. Just as all the jQuery ui callbacks get e,ui, it stands to reason the callbacks should be standardised... --adam On Sep 11, 10:13 am, "Brian Relph" <[EMAIL PROTECTED]> wrote: > I think I agree with you that it does not matt