import Ember from 'ember';

var proxyGenerator = function (name) {
    return function (msg = '', title = '', options = {}) {
        window.toastr[name](msg.toString(), title.toString(), options);
    };
};

export default Ember.Service.extend({
    success: proxyGenerator('success'),
    info: proxyGenerator('info'),
    warning: proxyGenerator('warning'),
    error: proxyGenerator('error')
});

import Ember from 'ember';

var proxyGenerator = function (name) {
  return function (msg = '', title = '', options = {}) {
    window.toastr[name](msg.toString(), title.toString(), options);
  };
};

export default Ember.Service.extend({
  success: proxyGenerator('success'),
  info: proxyGenerator('info'),
  warning: proxyGenerator('warning'),
  error: proxyGenerator('error')
});

Use 2 spaces instead of 4
Use 2 spaces instead of 4
