🔧 RMR Styleguide

JavaScript

Constructor arguments

Key arguments to constructors should be passed via key/value pairs within an object, ex:

{
  node : '#selector'
}

Event notifications that an object fires are passed to the constructor as an object through the 'on' key

{
  …
  on : {
    load : function() { },
    error : function() { }
  }
}