added support for static content, added jigsaw puzzle

This commit is contained in:
Kevin Jahns
2015-12-02 15:58:22 +01:00
parent 3a55ca4f21
commit 0db7fe5d46
3 changed files with 4 additions and 4 deletions

2
dist

Submodule dist updated: 434432a742...c44c86054e

View File

@@ -560,12 +560,12 @@ module.exports = function (Y/* :any */) {
}
* getOperation (id/* :any */)/* :Transaction<any> */ {
var o = yield* this.os.find(id)
if (o != null || id[0] != '_') {
if (o != null || id[0] !== '_') {
return o
} else {
// need to generate this operation
if (this.store._nextUserId == null) {
var typename= id[1].split('_')[0]
var typename = id[1].split('_')[0]
this.store._nextUserId = id
yield* Y[typename].createType.call(this)
delete this.store._nextUserId

View File

@@ -73,7 +73,7 @@ type DbOptions = MemoryOptions | IndexedDBOptions
type WebRTCOptions = {
name: 'webrtc',
room: string
}
}
type WebsocketsClientOptions = {
name: 'websockets-client',
room: string