0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00

Fix white-space and naming convention errors.

This commit is contained in:
Neil Jenkins 2015-05-03 13:18:00 +07:00
parent 3da7b19404
commit 73641ad899
3 changed files with 8 additions and 9 deletions

View file

@ -3083,7 +3083,7 @@ proto._onPaste = function ( event ) {
var node = frag, var node = frag,
doPaste = true, doPaste = true,
evt = { event = {
fragment: frag, fragment: frag,
preventDefault: function () { preventDefault: function () {
doPaste = false; doPaste = false;
@ -3096,11 +3096,11 @@ proto._onPaste = function ( event ) {
fixCursor( node ); fixCursor( node );
} }
self.fireEvent( 'willPaste', evt); self.fireEvent( 'willPaste', event );
// Insert pasted data // Insert pasted data
if ( doPaste ) { if ( doPaste ) {
insertTreeFragmentIntoRange( range, evt.fragment ); insertTreeFragmentIntoRange( range, event.fragment );
if ( !canObserveMutations ) { if ( !canObserveMutations ) {
self._docWasChanged(); self._docWasChanged();
} }

File diff suppressed because one or more lines are too long

View file

@ -1659,7 +1659,7 @@ proto._onPaste = function ( event ) {
var node = frag, var node = frag,
doPaste = true, doPaste = true,
evt = { event = {
fragment: frag, fragment: frag,
preventDefault: function () { preventDefault: function () {
doPaste = false; doPaste = false;
@ -1672,11 +1672,11 @@ proto._onPaste = function ( event ) {
fixCursor( node ); fixCursor( node );
} }
self.fireEvent( 'willPaste', evt); self.fireEvent( 'willPaste', event );
// Insert pasted data // Insert pasted data
if ( doPaste ) { if ( doPaste ) {
insertTreeFragmentIntoRange( range, evt.fragment ); insertTreeFragmentIntoRange( range, event.fragment );
if ( !canObserveMutations ) { if ( !canObserveMutations ) {
self._docWasChanged(); self._docWasChanged();
} }