Skip to content

Commit ca3ebef

Browse files
committed
add RRruleSet.toJSON method
1 parent 20e1589 commit ca3ebef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/rrule.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,6 +1835,13 @@
18351835
return JSON.stringify(this.valueOf())
18361836
},
18371837

1838+
/**
1839+
* invoked when instance is passed through JSON.stringify()
1840+
*/
1841+
toJSON: function () {
1842+
return JSON.stringify(this.valueOf())
1843+
},
1844+
18381845
_iter: function (iterResult) {
18391846
var _exdateHash = {}
18401847
var _exrule = this._exrule

0 commit comments

Comments
 (0)