Private methods of gird prefixed with _

This commit is contained in:
vakrilov
2015-10-27 10:44:23 +02:00
parent 977f72f7fc
commit 219c0c8033

View File

@ -298,11 +298,11 @@ export class GridLayout extends layouts.LayoutBase implements definition.GridLay
_applyXmlAttribute(attributeName: string, attributeValue: any): boolean { _applyXmlAttribute(attributeName: string, attributeValue: any): boolean {
if (attributeName === "columns") { if (attributeName === "columns") {
this.setColumns(attributeValue); this._setColumns(attributeValue);
return true; return true;
} }
else if (attributeName === "rows") { else if (attributeName === "rows") {
this.setRows(attributeValue); this._setRows(attributeValue);
return true; return true;
} }
@ -386,12 +386,12 @@ export class GridLayout extends layouts.LayoutBase implements definition.GridLay
throw new Error("Element is not View or its descendant."); throw new Error("Element is not View or its descendant.");
} }
private setColumns(value: string) { private _setColumns(value: string) {
this._cols = GridLayout.parseItemSpecs(value); this._cols = GridLayout.parseItemSpecs(value);
this.invalidate(); this.invalidate();
} }
private setRows(value: string) { private _setRows(value: string) {
this._rows = GridLayout.parseItemSpecs(value); this._rows = GridLayout.parseItemSpecs(value);
this.invalidate(); this.invalidate();
} }