diff --git a/js/id/id.js b/js/id/id.js index 91d69e45b..ce3f8b515 100644 --- a/js/id/id.js +++ b/js/id/id.js @@ -148,6 +148,13 @@ window.iD = function () { })); } + var embed = false; + context.embed = function(_) { + if (!arguments.length) return embed; + embed = _; + return context; + }; + return d3.rebind(context, dispatch, 'on'); }; diff --git a/js/id/ui.js b/js/id/ui.js index e2cff652d..981f26b8e 100644 --- a/js/id/ui.js +++ b/js/id/ui.js @@ -78,9 +78,11 @@ iD.ui = function(context) { var about = container.append('div') .attr('class','col12 about-block fillD'); - about.append('div') - .attr('class', 'account') - .call(iD.ui.Account(context)); + if (!context.embed()) { + about.append('div') + .attr('class', 'account') + .call(iD.ui.Account(context)); + } var linkList = about.append('ul') .attr('id', 'about')