1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 05:38:01 +01:00

Don't Be Evil.

--HG--
rename : pentadactyl/skin/icon.png => pentadactyl/icon16.png
This commit is contained in:
Kris Maglione
2011-09-11 15:06:46 -04:00
parent 68d8bf74df
commit 345cce5a42
8 changed files with 41 additions and 28 deletions

View File

@@ -270,9 +270,10 @@ var Buffer = Module("buffer", {
*/
get localStore() {
let doc = content.document;
if (!doc.dactylStore || !buffer.localStorePrototype.isPrototypeOf(doc.dactylStore))
doc.dactylStore = Object.create(buffer.localStorePrototype);
return doc.dactylStore.instance = doc.dactylStore;
let store = overlay.getData(doc, "buffer");
if (!store || !buffer.localStorePrototype.isPrototypeOf(store))
store = overlay.setData(doc, "buffer", Object.create(buffer.localStorePrototype));
return store.instance = store;
},
localStorePrototype: memoize({
@@ -463,7 +464,8 @@ var Buffer = Module("buffer", {
else
flags = services.focus.FLAG_SHOWRING;
if (!elem.dactylHadFocus && elem.value &&
if (!overlay.getData(elem, "had-focus", false) &&
elem.value &&
elem instanceof HTMLInputElement &&
Editor.getEditor(elem) &&
elem.selectionStart != null &&