Update jquery.ime from upstream

Change-Id: I8aaec153f29863174430d9c338eb2d97b8c835d6
This commit is contained in:
Santhosh Thottingal
2013-03-13 13:24:26 +05:30
parent a109643ebd
commit b8b4b275ff

View File

@@ -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;
}, },