--- a/implementation.js Thu Jan 19 12:40:27 2012 -0700
+++ b/implementation.js Fri Feb 24 07:50:46 2012 -0700
@@ -492,7 +492,7 @@
var executionStackDepth = 0;
// Helper function for common behavior.
-function editCommandMethod(command, prop, range, callback) {
+function editCommandMethod(command, range, callback) {
// Set up our global range magic, but only if we're the outermost function
if (executionStackDepth == 0 && typeof range != "undefined") {
globalRange = range;
@@ -541,7 +541,7 @@
}
// "If command is not supported, raise a NOT_SUPPORTED_ERR exception."
- return editCommandMethod(command, "action", range, (function(command, showUi, value) { return function() {
+ return editCommandMethod(command, range, (function(command, showUi, value) { return function() {
// "If command is not enabled, return false."
if (!myQueryCommandEnabled(command)) {
return false;
@@ -562,7 +562,7 @@
command = command.toLowerCase();
// "If command is not supported, raise a NOT_SUPPORTED_ERR exception."
- return editCommandMethod(command, "action", range, (function(command) { return function() {
+ return editCommandMethod(command, range, (function(command) { return function() {
// "Among commands defined in this specification, those listed in
// Miscellaneous commands are always enabled. The other commands defined
// here are enabled if the active range is not null, and disabled
@@ -578,7 +578,7 @@
command = command.toLowerCase();
// "If command is not supported, raise a NOT_SUPPORTED_ERR exception."
- return editCommandMethod(command, "indeterm", range, (function(command) { return function() {
+ return editCommandMethod(command, range, (function(command) { return function() {
// "If command has no indeterminacy or is not enabled, return false."
if (!("indeterm" in commands[command])
|| !myQueryCommandEnabled(command)) {
@@ -596,7 +596,7 @@
command = command.toLowerCase();
// "If command is not supported, raise a NOT_SUPPORTED_ERR exception."
- return editCommandMethod(command, "state", range, (function(command) { return function() {
+ return editCommandMethod(command, range, (function(command) { return function() {
// "If command has no state or is not enabled, return false."
if (!("state" in commands[command])
|| !myQueryCommandEnabled(command)) {
@@ -630,7 +630,7 @@
command = command.toLowerCase();
// "If command is not supported, raise a NOT_SUPPORTED_ERR exception."
- return editCommandMethod(command, "value", range, function() {
+ return editCommandMethod(command, range, function() {
// "If command has no value or is not enabled, return the empty
// string."
if (!("value" in commands[command])