From cdaa324b5fb0206c4f9c5253f518d4d0c4f179f5 Mon Sep 17 00:00:00 2001 From: Paul Andrew Date: Tue, 25 Nov 2014 18:21:41 +0000 Subject: [PATCH] Update platform.js This is returning a number rather than a string. Not sure if the doc or the code is incorrect. To return a String you'd need to return device().v instead of device().version. --- js/utils/platform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/utils/platform.js b/js/utils/platform.js index d81f3871b4..a22b0f1868 100644 --- a/js/utils/platform.js +++ b/js/utils/platform.js @@ -222,7 +222,7 @@ /** * @ngdoc method * @name ionic.Platform#version - * @returns {string} The version of the current device platform. + * @returns {number} The version of the current device platform. */ version: function() { // singleton to get the platform version