Update jquery.ime from upstream
Change-Id: I8aaec153f29863174430d9c338eb2d97b8c835d6
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/*! jquery.ime - v0.1.0 - 2013-03-11
|
/*! jquery.ime - v0.1.0 - 2013-03-13
|
||||||
* https://github.com/wikimedia/jquery.ime
|
* https://github.com/wikimedia/jquery.ime
|
||||||
* Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */
|
* Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */
|
||||||
( function ( $ ) {
|
( function ( $ ) {
|
||||||
@@ -22,6 +22,9 @@
|
|||||||
|
|
||||||
listen: function () {
|
listen: function () {
|
||||||
this.$element.on( 'keypress.ime', $.proxy( this.keypress, this ) );
|
this.$element.on( 'keypress.ime', $.proxy( this.keypress, this ) );
|
||||||
|
this.$element.on( 'destroy.ime', $.proxy( this.destroy, this ) );
|
||||||
|
this.$element.on( 'enable.ime', $.proxy( this.enable, this ) );
|
||||||
|
this.$element.on( 'disable.ime', $.proxy( this.disable, this ) );
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -165,6 +168,11 @@
|
|||||||
this.active = !this.active;
|
this.active = !this.active;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
destroy: function () {
|
||||||
|
$( 'body' ).off( '.ime' );
|
||||||
|
this.$element.off( '.ime' ).removeData( 'ime' ).removeData( 'imeselector' );
|
||||||
|
},
|
||||||
|
|
||||||
getIM: function () {
|
getIM: function () {
|
||||||
return this.inputmethod;
|
return this.inputmethod;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user