1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 04:27:59 +01:00

Fix finder with iframes. Fix dactyl cleanup on :rehash.

This commit is contained in:
Kris Maglione
2011-01-12 14:15:58 -05:00
parent 0f9a558a3c
commit 0d9f623bea
3 changed files with 13 additions and 11 deletions

View File

@@ -474,11 +474,11 @@ var Buffer = Module("buffer", {
* @property {Window} Returns the currently focused frame.
*/
get focusedFrame() {
let frame = (dactyl.has("tabs") ? tabs.localStore : this.localStore).focusedFrame;
let frame = this.localStore.focusedFrame;
return frame && frame.get() || content;
},
set focusedFrame(frame) {
(dactyl.has("tabs") ? tabs.localStore : this.localStore).focusedFrame = Cu.getWeakReference(frame);
this.localStore.focusedFrame = Cu.getWeakReference(frame);
},
/**