Commit 80dc6caa by Brian Keith Smith

expect the every option to always be a string on iOS. display a warning if it is not.

parent 0ae10b80
......@@ -172,6 +172,16 @@ exports.convertProperties = function (options) {
options.data = JSON.stringify(options.data);
}
if (options.every)
if (device.platform == 'iOS' && typeof options.every != 'string') {
options.every = this.getDefaults().every;
var warning = 'Every option is not a string: ' + options.id;
warning += '. Expects one of: second, minute, hour, day, week, ';
warning += 'month, year on iOS.';
console.warn(warning);
}
}
return options;
};
......
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