1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 03:15:45 +01:00

Make 'doc' available to group initializer.

This commit is contained in:
Kris Maglione
2011-08-08 12:19:01 -04:00
parent e23c96580c
commit 6debfa4132
3 changed files with 21 additions and 8 deletions

View File

@@ -119,9 +119,12 @@ var Map = Class("Map", {
.map(function ([i, prop]) [prop, this[i]], arguments)
.toObject();
args = update({ context: contexts.context },
this.hive.argsExtra(args),
args);
let orig = args;
args = update({
context: contexts.context,
doc: this.hive.group.lastDocument
}, args);
update(args, this.hive.argsExtra(args), orig);
let self = this;
function repeat() self.action(args)