Home

Awesome

Ripple | Function

Coverage Status Build Status

Extends core to register functions. For cases when a function resource is registered as a string (e.g. from WS, localStorage), this converts it into a real function before storing.

ripple('component', function(){ })

If you coerce a string to be registered as a function, it will attempt to turn it into a real function first:

ripple({
  name: 'component'
, body: 'function(){ }' 
, headers: { 'content-type': 'application/javascript' }
})

typeof ripple('component') // 'function'