While reading on Hacker News about Spidermonkey performance, I saw commenters talking about switching from Chrome to Firefox and Opera. One commenter described Opera as Chrome without Google, which sounded interesting to me. I hadn’t tried Opera in a few years and I like to cycle through browsers occasionally to see what I’m missing. So I downloaded Opera 25 on my MacBook and gave it a try.
I upgraded from Mavericks to Yosemite on my MacBook tonight and thought I’d share some of the fixes I had to apply to get my development environment set up again. I’ll continue to update this post as I discover new things that aren’t quite working the same as before.
I always lag behind Jon when it comes to trying out build tools or frameworks that are supposed to make my programming life easier. He tells me about cool new things he’s using, and I say “yeah, that looks cool, but I just want to be productive, so I’ll do things they way I’ve been doing them.” Then eventually I get a chance and I try out the cool thing and Jon was right, it’s totally great. That happened for me recently with Yeoman and Bower.
Recently, I had need to change the value of a select menu in an iframe from the outer page containing the iframe. There was a
I wanted to change the value of the select menu and for the
to happen. As you can see, the iframe didn’t use jQuery to set the
event handler, so I couldn’t do the following:
// doesn't trigger callback function! var iframe = $('iframe'); var iframe_select = iframe.contents().find('select#menu'); iframe_select.val(value); iframe_select.trigger('change');
That didn’t work. I could inspect the select menu after this code ran and its
value was definitely updated, but the
change callback never happened.
What ended up working for me was the following code. I’d never used
dispatchEvent before, so I thought I’d