[BlackBerry10] Fix notification handling of commas in button labels Reviewed by Bryan Higgins <bhigg...@blackberry.com> Tested by Tracy Li <t...@blackberry.com>
Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/6d6478ee Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/6d6478ee Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/6d6478ee Branch: refs/heads/3.0.0 Commit: 6d6478ee42a46bca394cde7f028face62f9e1903 Parents: acaf837 Author: jkeshavarzi <jkeshava...@blackberry.com> Authored: Wed Apr 24 14:26:18 2013 -0400 Committer: Bryan Higgins <bhigg...@blackberry.com> Committed: Fri May 3 09:50:05 2013 -0400 ---------------------------------------------------------------------- lib/common/plugin/notification.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-js/blob/6d6478ee/lib/common/plugin/notification.js ---------------------------------------------------------------------- diff --git a/lib/common/plugin/notification.js b/lib/common/plugin/notification.js index 47a1c52..919e050 100644 --- a/lib/common/plugin/notification.js +++ b/lib/common/plugin/notification.js @@ -63,7 +63,7 @@ module.exports = { // Some platforms take an array of button label names. // Other platforms take a comma separated list. // For compatibility, we convert to the desired type based on the platform. - if (platform.id == "android" || platform.id == "ios" || platform.id == "windowsphone") { + if (platform.id == "android" || platform.id == "ios" || platform.id == "windowsphone" || platform.id == "blackberry10") { if (typeof _buttonLabels === 'string') { var buttonLabelString = _buttonLabels; _buttonLabels = _buttonLabels.split(","); // not crazy about changing the var type here