aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-06-21 18:25:29 +0200
committerwout <wout@impinc.co.uk>2014-06-21 18:25:29 +0200
commit19b6fd4338246d1fd9ca4806e57c7aebcec63826 (patch)
tree3dd1d207de9f586f7e4d4cd36917e347ab022a9e /src/helpers.js
parentbb0e6be2da0cea98c5303871c0be055f5f70d7a9 (diff)
downloadsvg.js-19b6fd4338246d1fd9ca4806e57c7aebcec63826.tar.gz
svg.js-19b6fd4338246d1fd9ca4806e57c7aebcec63826.zip
Removed all structural references
Diffstat (limited to 'src/helpers.js')
-rw-r--r--src/helpers.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers.js b/src/helpers.js
index c63c215..492039c 100644
--- a/src/helpers.js
+++ b/src/helpers.js
@@ -5,6 +5,11 @@ function camelCase(s) {
})
}
+// Capitalize first letter of a string
+function capitalize(s) {
+ return s.charAt(0).toUpperCase() + s.slice(1)
+}
+
// Ensure to six-based hex
function fullHex(hex) {
return hex.length == 4 ?