API Docs for: 0.0.10
Class defined in: mime/mime.js:61

safeObject Class

Given a constructor function as an argument, safeObject will create a new JavaScript Class that will not throw an exception when a call is made to a non-existent function member. A call will be made instead to the 'undefinedMethod' function which can be overridden to implement functionality you find useful. It will also look for symbols that have been registered with the target object's __constructor array and will treat those functions in the way that constructor functions need to be treated.

Constructor

mime/mime.js:61

safeObject( f )


Parameters:
  • f <Function>
    • the constructor function that you want to use for your safe class

Returns: <Class>