[gnome-shell] focusCaretTracker: Minor cleanup
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] focusCaretTracker: Minor cleanup
- Date: Fri, 6 Sep 2013 17:26:01 +0000 (UTC)
commit b04c47c15f7bb9de053d159abadc74ef03af3b6e
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Sep 6 10:18:09 2013 +0200
focusCaretTracker: Minor cleanup
js/ui/focusCaretTracker.js | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/focusCaretTracker.js b/js/ui/focusCaretTracker.js
index c4c4d7f..4e18e65 100644
--- a/js/ui/focusCaretTracker.js
+++ b/js/ui/focusCaretTracker.js
@@ -37,14 +37,10 @@ const FocusCaretTracker = new Lang.Class({
},
_onChanged: function(event) {
- let update = null;
-
if (event.type.indexOf(STATECHANGED) == 0)
- update = 'focus-changed';
+ this.emit('focus-changed', event);
else if (event.type == CARETMOVED)
- update = 'caret-moved';
- if(update != null)
- this.emit(update, event);
+ this.emit('caret-moved', event);
},
registerFocusListener: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]