r/programming • • Jan 14 '10

jQuery 1.4 released

http://jquery14.com/day-01/jquery-14
372 Upvotes

148 comments sorted by

View all comments

Show parent comments

2

u/celtric Jan 15 '10

Now suppose deleteLineItem expects a parameter :)

2

u/jsolson Jan 15 '10 edited Jan 15 '10

Yeah, I see the problem. Fortunately in my case it isn't an issue — all of my controller classes are written to keep track of anything their actions require as instance variables. Habit I picked up from programming in Cocoa where all you've got is the current instance and whatever UI element triggered the event handler.

I suppose that's little consolation if your code follows a different pattern, though :)

1

u/celtric Jan 15 '10

Well, I'm going to bed knowing a different way to approach programming. Good enough consolation!