You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -205,7 +205,7 @@ import {Router, Server} from 'Kakapo';
205
205
206
206
constrouter=newRouter();
207
207
208
-
router.get('/users/', (request) => {
208
+
router.get('/users/', () => {
209
209
return'meh';
210
210
});
211
211
@@ -428,7 +428,7 @@ $.ajax({
428
428
url:'/posts/1/comments/5?page=1&count=10',
429
429
data: {text:'Foo comment'},
430
430
headers: {'X-Access-token':'12345'}
431
-
)
431
+
})
432
432
```
433
433
434
434
**Options**
@@ -611,7 +611,7 @@ server.use(xhrRouter);
611
611
612
612
The **scenario** concept is nothing else than the ability of having different presets of Kakapo, like router, database, etc... and later, allow the user to decide when he wants to use one of other.
613
613
614
-
Let's say you want to check how the spinners looks in your app, in that case you probably will put a higher value as a **requestDelay**, to make sure that the requests are intercepted late and you can check the UI... other good use case might be one in which you want to test the performance of a view when you have thousands of elements, in order to achieve that you will just need to pass a hight number to the **create** method of the **Database**:
614
+
Let's say you want to check how the spinners looks in your app, in that case you probably will put a higher value as a **requestDelay**, to make sure that the requests are intercepted late and you can check the UI... other good use case might be one in which you want to test the performance of a view when you have thousands of elements, in order to achieve that you will just need to pass a high number to the **create** method of the **Database**:
Kakapo.js relies on [WeakMap](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) but we don't ship a polyfill with the library because the [current support](http://kangax.github.io/compat-table/es6/#test-WeakMap) is fine and this library should only we used for development purposes **never for production usage**, anyways you can find a [WeakMap polyfill here](https://github.com/Benvie/WeakMap).
0 commit comments