jsgantt-improved
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -225,4 +225,18 @@ "use strict"; | ||
this.getName = function () { return vName; }; | ||
this.getStart = function () { return vStart ? vStart : vPlanStart; }; | ||
this.getEnd = function () { return vEnd ? vEnd : vPlanEnd; }; | ||
this.getStart = function () { | ||
if (vStart) | ||
return vStart; | ||
else if (vPlanStart) | ||
return vPlanStart; | ||
else | ||
return new Date(); | ||
}; | ||
this.getEnd = function () { | ||
if (vEnd) | ||
return vEnd; | ||
else if (vPlanEnd) | ||
return vPlanEnd; | ||
else | ||
return new Date(); | ||
}; | ||
this.getPlanStart = function () { return vPlanStart ? vPlanStart : vStart; }; | ||
@@ -229,0 +243,0 @@ this.getPlanEnd = function () { return vPlanEnd ? vPlanEnd : vEnd; }; |
{ | ||
"name": "jsgantt-improved", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "jsgantt-improved", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -253,4 +253,12 @@ import { parseDateStr, isIE, stripUnwanted, getOffset, formatDateStr } from "./utils"; | ||
this.getName = function () { return vName; }; | ||
this.getStart = function () { return vStart ? vStart : vPlanStart; }; | ||
this.getEnd = function () { return vEnd ? vEnd : vPlanEnd; }; | ||
this.getStart = function () { | ||
if (vStart) return vStart; | ||
else if (vPlanStart) return vPlanStart; | ||
else return new Date(); | ||
}; | ||
this.getEnd = function () { | ||
if (vEnd) return vEnd; | ||
else if (vPlanEnd) return vPlanEnd; | ||
else return new Date(); | ||
}; | ||
this.getPlanStart = function () { return vPlanStart ? vPlanStart : vStart; }; | ||
@@ -277,3 +285,2 @@ this.getPlanEnd = function () { return vPlanEnd ? vPlanEnd : vEnd; }; | ||
this.getToDelete = function () { return vToDelete; }; | ||
this.getDuration = function (pFormat, pLang) { | ||
@@ -280,0 +287,0 @@ if (vMile) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1614571
15044