Hi James Shelton Agar,
The problem is the incorrect casing of atool
Bar (the real object) and atool
bar (undefined).
You can change it or, even better, to use the sender object.
You can further optimize the code by using this one:
I hope this helps.
Greetings,
Veselin Vasilev
the Telerik team