1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-10 16:44:12 +01:00

Add contexts.withContext.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-07 23:51:29 -05:00
parent 76dee44cb9
commit 51a9fc8dea
5 changed files with 14 additions and 13 deletions

View File

@@ -150,8 +150,7 @@ var IO = Module("io", {
params = params || {};
let time = Date.now();
return contexts.withSavedValues(["context"], function _source() {
contexts.context = null;
return contexts.withContext(null, function () {
try {
var file = util.getFile(filename) || io.File(filename);