Re: Is cordova.utils.vformat a documented API?

2013-04-02 Thread Ian Clelland
Cool, thanks -- pull request sent then :) If this becomes an issue--if there are third party developers relying on the old behaviour of vformat--then we should point them at cordova.utils.format, which does swallow any extra params, but has a slightly different function signature. It's behaviour i

Re: Is cordova.utils.vformat a documented API?

2013-04-02 Thread Shazron
It's not documented AFAIK. Did a grep in cordova-docs, no mention of it in any version On Tue, Apr 2, 2013 at 8:08 AM, Ian Clelland wrote: > Working on CB-2825, I've come to the conclusion that cordova.utils.vformat > should be working more like the string formatting in console.log(). That > is

Is cordova.utils.vformat a documented API?

2013-04-02 Thread Ian Clelland
Working on CB-2825, I've come to the conclusion that cordova.utils.vformat should be working more like the string formatting in console.log(). That is, vformat("abc%sdef", "GHI", "JKL") => "abcGHIdef JKL" In the JS console, extra arguments remaining after string interpolation are appended to the