Created
December 7, 2009 18:40
-
-
Save Rendez/251003 to your computer and use it in GitHub Desktop.
Number fix for values in SVG Gecko implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Retuns the native constructor of its caller | |
function $itself(){ | |
return function(){ | |
return this; | |
} | |
} | |
// Number Fix for SVG values in Gecko | |
Number.implement('svg', (Browser.Engine.gecko) ? function(){ return this + 0.001; } : $itself()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment