[Pkg-mozext-commits] [itsalltext] 444/459: Dispatch an "input" event on update
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit 9b918709dac1c3ed1365b38427a8dd94dc9d86b9
Author: rjlov <github at rjlov.com>
Date: Thu Oct 2 14:15:10 2014 +1000
Dispatch an "input" event on update
If a listener is interested in immediate changes, the "input" event is more relevant than the "change" event.
---
src/chrome/content/cacheobj.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index 23a23dd..f0ef2f2 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -582,6 +582,10 @@ CacheObj.prototype.update = function () {
var event = this.node.ownerDocument.createEvent("HTMLEvents");
event.initEvent('change', true, false);
this.node.dispatchEvent(event);
+
+ var inputEvent = this.node.ownerDocument.createEvent("HTMLEvents");
+ inputEvent.initEvent('input', true, false);
+ this.node.dispatchEvent(inputEvent);
return true;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list