Closed buckelieg closed 6 years ago
From the example:
var bottle = new Bottle(); bottle.service('Barley', Barley); bottle.service('Hops', Hops); bottle.service('Water', Water); bottle.service('Beer', function(barley, hops, water) { ... }, 'Barley', 'Hops', 'Water' );
Omit string declarations after function if we declare tis arguments with the same object names as we registered before:
var bottle = new Bottle(); bottle.service('Barley', Barley); bottle.service('Hops', Hops); bottle.service('Water', Water); bottle.service('Beer', function(Barley, Hops, Water) { ... });
This will not work if the javascript is minified.
See my comments on it here: https://github.com/young-steveo/bottlejs/issues/3#issuecomment-57213962
From the example:
Omit string declarations after function if we declare tis arguments with the same object names as we registered before: