Bro(app)
.iDontAlways('config.environment.buildURL')
.butWhenIdo(function(buildURL){
myURL = buildURL('dev');
});
This is awesome, but sometimes it's great to not have to check the property again to handle an 'else' exception. Something like:
Bro(app)
.iDontAlways('config.environment.buildURL')
.butWhenIdo(function(buildURL){
myURL = buildURL('dev');
})
.butIfIdont(function() {
// do other stuff
});
Tried to wire in something like this, but it blew up when trying to add in the fallback function.
This is awesome, but sometimes it's great to not have to check the property again to handle an 'else' exception. Something like:
Tried to wire in something like this, but it blew up when trying to add in the fallback function.