diff options
author | Jean Claveau <jean.claveau@c277.fr> | 2014-11-21 00:15:51 +0100 |
---|---|---|
committer | Jean Claveau <jean.claveau@c277.fr> | 2014-11-21 00:15:51 +0100 |
commit | 4c3d6798631b754bb8d9362dfda2d166779f3531 (patch) | |
tree | 3ef038c9454792edbd37795af1b0ffd9af74bfe4 /script | |
parent | 38ed1be1d7b14b840268f7d6edfb4a3faf342d27 (diff) |
it's alive!
Diffstat (limited to 'script')
-rw-r--r-- | script/svg/__init__.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/script/svg/__init__.js b/script/svg/__init__.js index 673b0d169f..8f5d6f570b 100644 --- a/script/svg/__init__.js +++ b/script/svg/__init__.js @@ -3,6 +3,13 @@ __setupPackage__(__extension__); * This extension provides the api to add hooks into attributes in * the SVG parser. */ + +function isNumber(n) { + return !isNaN(parseFloat(n)) && isFinite(n); +} + + + (function(){ svg.templateHooks = {}; |