Rickey,
This should cover that then: (lines 12-15)
_addButtonToInspector: function() {
var closeButton = new Button({
"label": this.nls.close,
"class": " atiButton close-button"
}, html.create("div"));
html.place(closeButton.domNode,
this.editor.attributeInspector.deleteBtn.domNode,
"before");
this.own(on(closeButton, 'click', lang.hitch(this, function() {
this.editPopup.hide();
setTimeout(lang.hitch(this, function(){
var panel = this.getPanel();
panel.foldableNode.click();
}),1200);
})));
...