Skip to content

Instantly share code, notes, and snippets.

@Rendez
Created December 7, 2009 18:40
Show Gist options
  • Save Rendez/251003 to your computer and use it in GitHub Desktop.
Save Rendez/251003 to your computer and use it in GitHub Desktop.
Number fix for values in SVG Gecko implementation
// 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