Commit 16de6fea by Sebastián Katzer

Fix JS bug when trigger property was a date and no object

parent c8ecc570
......@@ -201,7 +201,8 @@ exports.convertTrigger = function (options) {
var isCal = trigger.type == 'calendar';
if (isCal && !date) {
date = this.getValueFor(options, 'at', 'firstAt', 'date') || new Date();
date = this.getValueFor(options, 'trigger', 'at', 'firstAt', 'date');
date = date || new Date();
}
if (isCal) {
......@@ -213,14 +214,6 @@ exports.convertTrigger = function (options) {
trigger.every = options.every;
}
if (!trigger.count && device.platform == 'windows') {
trigger.count = trigger.every ? 5 : 1;
}
if (trigger.every && device.platform == 'windows') {
trigger.every = trigger.every.toString();
}
if (!isCal) {
trigger.notifyOnEntry = !!trigger.notifyOnEntry;
trigger.notifyOnExit = trigger.notifyOnExit === true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment