Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate the delta in a cursor-aware manner. #381

Merged
merged 1 commit into from
May 29, 2015

Conversation

yyjhao
Copy link

@yyjhao yyjhao commented May 28, 2015

This ensures that the delta is as close to the user's action as
possible.

@@ -1,4 +1,5 @@
_ = require('lodash')
Delta = require('rich-text/lib/delta')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you align the =s?

@jhchen
Copy link
Member

jhchen commented May 28, 2015

Great thanks for the PR! Just a few mostly stylistic changes requested in the inline comments.

@yyjhao yyjhao force-pushed the cursor_aware_delta branch 3 times, most recently from 1788245 to fe861c8 Compare May 28, 2015 20:36
# TODO need to get this to prefer earlier insertions
delta = @delta.diff(newDelta)
return delta
diff = null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff variable no longer used

This ensures that the delta is as close to the user's action as
possible.
jhchen added a commit that referenced this pull request May 29, 2015
Generate the delta in a cursor-aware manner
@jhchen jhchen merged commit 3656fc2 into slab:develop May 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants