--- a/implementation.js Sun Jul 24 12:01:11 2011 -0600
+++ b/implementation.js Sun Jul 24 13:10:06 2011 -0600
@@ -7405,8 +7405,17 @@
};
//@}
-//@{ Some final setup
-Object.keys(commands).forEach(function(command) {
+// Some final setup
+//@{
+(function() {
+// Opera 11.50 doesn't implement Object.keys, so I have to make an explicit
+// temporary, which means I need an extra closure to not leak the temporaries
+// into the global namespace. >:(
+var commandNames = [];
+for (var command in commands) {
+ commandNames.push(command);
+}
+commandNames.forEach(function(command) {
// "If a command does not have a relevant CSS property specified, it
// defaults to null."
if (!("relevantCssProperty" in commands[command])) {
@@ -7491,6 +7500,7 @@
};
}
});
+})();
//@}
// vim: foldmarker=@{,@} foldmethod=marker