This commit is contained in:
Ilya Kantor 2017-04-17 21:45:55 +02:00
parent a4a16fccd6
commit 57dc058c49
4 changed files with 9 additions and 9 deletions

View file

@ -106,7 +106,7 @@ alert( worker.slow(1) ); // the original method works
worker.slow = cachingDecorator(worker.slow); // now make it caching
*!*
alert( worker.slow(2) ); // WOOPS! Error: Cannot read property 'someMethod' of undefined
alert( worker.slow(2) ); // Whoops! Error: Cannot read property 'someMethod' of undefined
*/!*
```