Fix implementation.js bug
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Tue, 05 Jul 2011 11:09:10 -0600
changeset 356 30e9b52f6c3f
parent 355 18083af29a07
child 357 c75500ad3f43
Fix implementation.js bug

Added by 3cb594b3 "Rewrite a bunch of general behavior". I removed
defaults for all the other members there when I changed the spec (action
value etc.), but accidentally removed the default relevant CSS property
from the implementation too, which was breaking things.
implementation.js
--- a/implementation.js	Wed Jun 29 16:21:41 2011 -0600
+++ b/implementation.js	Tue Jul 05 11:09:10 2011 -0600
@@ -6808,4 +6808,14 @@
 };
 //@}
 
+(function() {
+	// "If a command does not have a relevant CSS property specified, it
+	// defaults to null."
+	for (var command in commands) {
+		if (!("relevantCssProperty" in commands[command])) {
+			commands[command].relevantCssProperty = null;
+		}
+	}
+})();
+
 // vim: foldmarker=@{,@} foldmethod=marker