Skip to content

Commit 945a214

Browse files
committed
Issue #73.
1 parent efe561b commit 945a214

File tree

1 file changed

+0
-5
lines changed
  • scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Schema/XSD

1 file changed

+0
-5
lines changed

scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Schema/XSD/Calendar.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,6 @@ Jsonix.Schema.XSD.Calendar = Jsonix.Class(Jsonix.Schema.XSD.AnySimpleType, {
206206
}
207207
},
208208
printSignedYear : function(value) {
209-
// REVIEW AV: Validation should be carried out before this
210-
// method is called, in the outmost user-facing method.
211-
if (value === 0) {
212-
throw new Error("Year must not be 0");
213-
}
214209
return value < 0 ? ("-" + this.printYear(value * -1)) : (this.printYear(value));
215210
},
216211
printYear : function(value) {

0 commit comments

Comments
 (0)