Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yjs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sweng-group-15
yjs
Commits
102555a3
Commit
102555a3
authored
9 years ago
by
Kevin Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Release 0.8.3
parent
ece8268e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dist
+1
-1
1 addition, 1 deletion
dist
package.json
+1
-1
1 addition, 1 deletion
package.json
src/y.js
+7
-2
7 additions, 2 deletions
src/y.js
with
9 additions
and
4 deletions
dist
@
3b8e148d
Compare
a77eb392
...
3b8e148d
Subproject commit
a77eb39218a5815854daa07373f7f4597c3b9cb9
Subproject commit
3b8e148d8fee752b6318df2b940316c77936b812
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
102555a3
{
"name"
:
"yjs"
,
"version"
:
"0.8.
3
"
,
"version"
:
"0.8.
4
"
,
"description"
:
"A framework for real-time p2p shared editing on arbitrary complex data types"
,
"main"
:
"./src/y.js"
,
"scripts"
:
{
...
...
This diff is collapsed.
Click to expand it.
src/y.js
+
7
−
2
View file @
102555a3
...
...
@@ -93,8 +93,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
)
})
})
...
...
@@ -111,6 +112,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
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment