Merge branch 'sdk' of github.com:c9/newclient into sdk

pull/39/head
Ruben Daniels 2015-02-17 18:56:19 +00:00
commit 02a71a2e1b
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -58,7 +58,7 @@ function ColumnHeader(parentEl, renderer) {
if (col.value && !col.getText)
col.getText = getColumnText;
var w = col.width;
if (w.slice(-1) == "%") {
if (typeof w == "string" && w.slice(-1) == "%") {
col.flex = parseInt(w, 10) / 100;
col.$width = col.width;
} else {
@ -69,6 +69,7 @@ function ColumnHeader(parentEl, renderer) {
col.pixelWidth = 0;
}, this);
columns.$fixedWidth = fixedWidth + "px";
columns.width = null;
provider.columns = columns;
};

Wyświetl plik

@ -14,8 +14,8 @@ oop.inherits(ListData, DataProvider);
(function() {
this.setRoot = function(array) {
this.visibleItems = array
this._signal("change");
this.visibleItems = array || [];
this._signal("change");
};
this.getDataRange = function(rows, columns, callback) {