Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
fix(form): fix correct disposal
Browse files Browse the repository at this point in the history
  • Loading branch information
JoschaMetze committed Oct 27, 2017
1 parent 0d0c39c commit 0543c85
Show file tree
Hide file tree
Showing 36 changed files with 24,348 additions and 39,954 deletions.
1,425 changes: 318 additions & 1,107 deletions dist/amd/aurelia-openui5-bridge.d.ts

Large diffs are not rendered by default.

17 changes: 12 additions & 5 deletions dist/amd/dynamic-page/dynamic-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,15 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', '../com
_self._taskQueue.queueTask(function () {
_self._page.setHeaderExpanded((0, _attributes.getBooleanFromAttributeValue)(_self.headerExpanded));
});
break;
return elem.localName;
}
if (elem.localName == 'content') {
this._page.setContent(child);

break;
return elem.localName;
}
if (elem.localName == 'footer') {
this._page.setFooter(child);
break;
return elem.localName;
}
}
};
Expand All @@ -149,7 +148,7 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', '../com
elem = _i2.value;
}

if (elem.localName == 'header') {
if (elem.localName == 'heading') {
break;
}

Expand All @@ -162,6 +161,14 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', '../com
}
};

Ui5DynamicPage.prototype.removeChildByRelation = function removeChildByRelation(child, relation) {
if (relation == 'heading') {
this._page.setHeader(null);
} else if (relation == 'content') {
this._page.setContent(null);
}
};

Ui5DynamicPage.prototype.attached = function attached() {
var attributeManager = new _attributeManager.AttributeManager(this.element);
var page = new sap.f.DynamicPage({
Expand Down
1 change: 1 addition & 0 deletions dist/amd/form/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', '../com
if (this._parent && this._parent.removeChildByRelation) this._parent.removeChildByRelation(this._form, this._relation);
var attributeManager = new _attributeManager.AttributeManager(this.element);
attributeManager.removeAttributes(["ui5-container"]);
this._form.destroy();
};

Ui5Form.prototype.editableChanged = function editableChanged(newValue) {
Expand Down
Loading

0 comments on commit 0543c85

Please sign in to comment.