(f)
| 2092 | } |
| 2093 | var nestedOperation = 0; |
| 2094 | function operation(f) { |
| 2095 | return function() { |
| 2096 | if (!nestedOperation++) startOperation(); |
| 2097 | try {var result = f.apply(this, arguments);} |
| 2098 | finally {if (!--nestedOperation) endOperation();} |
| 2099 | return result; |
| 2100 | }; |
| 2101 | } |
| 2102 | |
| 2103 | function compoundChange(f) { |
| 2104 | history.startCompound(); |
no test coverage detected