Roo/bootstrap/Calendar.js
[roojs1] / Roo / bootstrap / Calendar.js
index 9b750e1..b848d17 100644 (file)
@@ -616,7 +616,7 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
         var rows = [];
         for(var i =0; i < cells.length; i++) {
             Roo.log(cells[i].row);
-            cells[i].row = (typeof(cells[i].row)) ? 1 : (cells[i].row + 1);
+            cells[i].row = (typeof(cells[i].row) == 'undefined') ? 1 : (cells[i].row + 1);
             if (!crow) {
                 crow = {
                     start : cells[i],