Deploy 0.8.3

This commit is contained in:
Kevin Jahns 2016-01-15 03:46:51 +01:00
parent a77eb39218
commit 3b8e148d8f
5 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "yjs",
"version": "0.8.3",
"version": "0.8.4",
"homepage": "y-js.org",
"authors": [
"Kevin Jahns <kevin.jahns@rwth-aachen.de>"

9
y.es6
View File

@ -2385,8 +2385,9 @@ function Y (opts/* :YOptions */) /* :Promise<YConfig> */ {
Y.sourceDir = opts.sourceDir
return Y.requestModules(modules).then(function () {
return new Promise(function (resolve) {
var yconfig = new YConfig(opts, function () {
yconfig.db.whenUserIdSet(function () {
var yconfig = new YConfig(opts)
yconfig.db.whenUserIdSet(function () {
yconfig.init(function () {
resolve(yconfig)
})
})
@ -2403,6 +2404,10 @@ class YConfig {
constructor (opts, callback) {
this.db = new Y[opts.db.name](this, opts.db)
this.connector = new Y[opts.connector.name](this, opts.connector)
this.options = opts
}
init (callback) {
var opts = this.options
var share = {}
this.share = share
this.db.requestTransaction(function * requestTransaction () {

File diff suppressed because one or more lines are too long

2
y.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long