Index: trunk/extensions/Narayam/ext.narayam.core.js |
— | — | @@ -165,7 +165,7 @@ |
166 | 166 | |
167 | 167 | if ( e.which == 8 ) { // Backspace |
168 | 168 | // Blank the keybuffer |
169 | | - $( this ).data( 'narayam-keyBuffer', '' ); |
| 169 | + $( this ).data( 'narayamKeyBuffer', '' ); |
170 | 170 | return true; |
171 | 171 | } |
172 | 172 | |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | // to provide context for the transliteration regexes. |
189 | 189 | // We need to append c because it hasn't been added to $this.val() yet |
190 | 190 | var input = lastNChars( $this.val(), startPos, currentScheme.lookbackLength ) + c; |
191 | | - var keyBuffer = $this.data( 'narayam-keyBuffer' ); |
| 191 | + var keyBuffer = $this.data( 'narayamKeyBuffer' ); |
192 | 192 | var replacement = transliterate( input, keyBuffer, e.altKey ); |
193 | 193 | |
194 | 194 | // Update the key buffer |
— | — | @@ -196,7 +196,7 @@ |
197 | 197 | // The buffer is longer than needed, truncate it at the front |
198 | 198 | keyBuffer = keyBuffer.substring( keyBuffer.length - currentScheme.keyBufferLength ); |
199 | 199 | } |
200 | | - $this.data( 'narayam-keyBuffer', keyBuffer ); |
| 200 | + $this.data( 'narayamKeyBuffer', keyBuffer ); |
201 | 201 | |
202 | 202 | // textSelection() magic is expensive, so we avoid it as much as we can |
203 | 203 | if ( replacement == input ) { |
— | — | @@ -245,7 +245,7 @@ |
246 | 246 | $newInputs |
247 | 247 | .bind( 'keydown.narayam', onkeydown ) |
248 | 248 | .bind( 'keypress.narayam', onkeypress ) |
249 | | - .data( 'narayam-keyBuffer', '' ); |
| 249 | + .data( 'narayamKeyBuffer', '' ); |
250 | 250 | if ( enabled ) { |
251 | 251 | $newInputs.addClass( 'narayam-input' ); |
252 | 252 | } |