Hey all,
I was wondering if you can suggest a better way of achieving what this
snippet does. I do it often enough that it starts bloating my code and
frankly just gets annoying to type.
var some_button = $('some-button')
if ( some_button ) {
I've been a long time user of prototype and feel very comfortable in
most areas but this keeps coming up and I find it very annoying.
I have a hash that, as the code executes is filled with numeric ID's
as hash variable names. I basically need it to end up sort of like
this:
{
Tears of joy!!!
Thank you for this. I have been changing a ton of code thinking the
problem was in prototype and it was simply that I was using IDs just
like you. I added a simple freaking character to the IDs and presto!
I had already filed a ticket for this here: