@@ -24,10 +24,10 @@ var dispatcher = (function() {
2424 */
2525 var setupElementEvents = function ( $document , notifier ) {
2626 $document . on ( 'focus.editable' , editableSelector , function ( event ) {
27- if ( this . getAttribute ( config . pastingAttribute ) ) return ;
27+ if ( this . getAttribute ( config . pastingAttribute ) ) return ;
2828 notifier ( 'focus' , this ) ;
2929 } ) . on ( 'blur.editable' , editableSelector , function ( event ) {
30- if ( this . getAttribute ( config . pastingAttribute ) ) return ;
30+ if ( this . getAttribute ( config . pastingAttribute ) ) return ;
3131 notifier ( 'blur' , this ) ;
3232 } ) . on ( 'copy.editable' , editableSelector , function ( event ) {
3333 log ( 'Copy' ) ;
@@ -111,7 +111,7 @@ var dispatcher = (function() {
111111 var range = selectionWatcher . getFreshRange ( ) ;
112112 if ( range . isCursor ) {
113113 var cursor = range . getCursor ( ) ;
114- if ( cursor . isAtTextEnd ( ) ) {
114+ if ( cursor . isAtTextEnd ( ) ) {
115115 event . preventDefault ( ) ;
116116 event . stopPropagation ( ) ;
117117 notifier ( 'merge' , this , 'after' , cursor ) ;
@@ -127,7 +127,7 @@ var dispatcher = (function() {
127127
128128 if ( cursor . isAtTextEnd ( ) ) {
129129 notifier ( 'insert' , this , 'after' , cursor ) ;
130- } else if ( cursor . isAtBeginning ( ) ) {
130+ } else if ( cursor . isAtBeginning ( ) ) {
131131 notifier ( 'insert' , this , 'before' , cursor ) ;
132132 } else {
133133 notifier ( 'split' , this , cursor . before ( ) , cursor . after ( ) , cursor ) ;
@@ -241,7 +241,7 @@ var dispatcher = (function() {
241241 if ( eventListeners === undefined ) return ;
242242
243243 for ( var i = 0 , len = eventListeners . length ; i < len ; i ++ ) {
244- if ( eventListeners [ i ] . apply (
244+ if ( eventListeners [ i ] . apply (
245245 Editable ,
246246 Array . prototype . slice . call ( arguments ) . splice ( 1 )
247247 ) === false )
@@ -263,7 +263,7 @@ var dispatcher = (function() {
263263 listeners = { } ;
264264 // TODO check the config.event object to prevent
265265 // registering invalid handlers
266- for ( eventType in config . event ) {
266+ for ( eventType in config . event ) {
267267 this . addListener ( eventType , config . event [ eventType ] ) ;
268268 }
269269
0 commit comments