for deprecation-warning-wrapped raw methods, ensure to return so we can send the promise back.
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/781c3c98 Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/781c3c98 Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/781c3c98 Branch: refs/heads/no-lazy-load Commit: 781c3c98c2df14c3b4bbbff447af0cab149020f5 Parents: 52c3888 Author: filmaj <maj....@gmail.com> Authored: Fri Jun 9 14:26:00 2017 -0500 Committer: filmaj <maj....@gmail.com> Committed: Fri Jun 9 14:26:00 2017 -0500 ---------------------------------------------------------------------- src/util/alias.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/781c3c98/src/util/alias.js ---------------------------------------------------------------------- diff --git a/src/util/alias.js b/src/util/alias.js index edc32bc..4435c08 100644 --- a/src/util/alias.js +++ b/src/util/alias.js @@ -22,6 +22,6 @@ var cordova_events = require('cordova-common').events; module.exports = function aliasMethodToRawWithDeprecationNotice(property, targetObj, component) { targetObj.raw[property] = function() { cordova_events.emit('warn', 'Use of `' + component + '.raw.*` methods is deprecated and `' + component + '.raw` will be removed in a future release. Please migrate to using the top-level `' + component + '.*` methods instead.'); - targetObj[property].apply(targetObj, arguments); + return targetObj[property].apply(targetObj, arguments); }; }; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org