Joined August 2011
·
Posted to
Migrating jQuery for use in a Turbolinks Application
over 1 year
ago
Perfect @glaszig, this is exactly the kind of thing I was looking for. I have edited the tip to include this information. Thank you.
Posted to
Migrating jQuery for use in a Turbolinks Application
over 1 year
ago
I believe I was correct in the first place, just needed to be more specific about the type of on() function to call. I edited the tip to indicate that you should use a delegated on() event as http://api.jquery.com/on/#direct-and-delegated-events explains:
"Delegated events have the advantage that they can process events from descendant elements that are added to the document at a later time."
Achievements
168 Karma
7,393 Total ProTip Views
Forked
Have a project valued enough to be forked by someone else
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Cub
Have at least one original jQuery or Prototype open source repo
Charity
Fork and commit to someone's open source project in need
Altruist
Increase developer well-being by sharing at least 20 open source projects
Mongoose
Have at least one original repo where Ruby is the dominant language
Perhaps you meant to link to this example?
http://codepen.io/elad2412/pen/yfEGp