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

@ -1 +1 @@
Subproject commit 434432a742088e4f53aee0230353c18b5e621211
Subproject commit c44c86054ef1df42d782a67cba1f679207d07ed1

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