SHARE
TWEET

Toby Inkster

a guest Aug 5th, 2010 355 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function MyBigFunctionThatConvertsManyTypes (value, type)
  2. {
  3.   // ...
  4. }
  5.  
  6. context.registerTypeConversion('xsd:integer', function(x){ MyBigFunctionThatConvertsManyTypes(x, 'integer'); });
  7. context.registerTypeConversion('xsd:double', function(x){ MyBigFunctionThatConvertsManyTypes(x, 'double'); });
  8. context.registerTypeConversion('xsd:dateTime', function(x){ MyBigFunctionThatConvertsManyTypes(x, 'dateTime'); });
RAW Paste Data
Want to get better at JavaScript?
Learn to code JavaScript in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top