timkinnane / hubot-playbook

Conversation branching library for Hubots.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend datafunc should accept scope for extension

timkinnane opened this issue · comments

If optional scope (context object path) param is given, the function should only run if the template literal includes that path. This would prevent running unneccesary lookups.

function extend (dataFunc) {