@unclepaul/allcountjs
Version:
The open source framework for rapid business application development with Node.js
16 lines • 489 B
JavaScript
module.exports = function (injection) {
return {
compile: function (objects) {
var self = this;
objects.forEach(function (obj) {
var baseUrl = obj.propertyValue('baseUrl');
if (baseUrl) {
self.baseUrl = baseUrl;
}
});
},
getBaseUrl: function () {
return this.baseUrl || injection.inject('defaultBaseUrl', true);
}
}
};