From fdd1b85539fcf234fd52206b5e38b77dd7eada5e Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 27 Dec 2015 21:08:36 -0800 Subject: [PATCH] Allow uuid() to be called statically. --- static/cosmopolite.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/cosmopolite.js b/static/cosmopolite.js index 97817af..797c4f0 100644 --- a/static/cosmopolite.js +++ b/static/cosmopolite.js @@ -674,6 +674,13 @@ Cosmopolite.prototype.uuid = function() { }; +/** + * @see https://www.cosmopolite.org/reference#uuid + * @return {string} + */ +Cosmopolite.uuid = Cosmopolite.prototype.uuid; + + /** * Build a new Promise object with exception handling. *