add debit card to nextsteps

This commit is contained in:
Matias Alejo Garcia 2017-01-31 09:12:21 -03:00
commit 8e5d42edc5
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
4 changed files with 58 additions and 11 deletions

View file

@ -14,17 +14,21 @@
};
root.unregister = function(serviceName) {
var newS = lodash.filter(services, function(x) {
return x.name != serviceName;
});
// Found?
if (newS.length == services.length) return;
$log.info('Removing NextSteps entry:' + serviceName);
var newS = lodash.filter(services, function(x) {
return x.name!=serviceName;
});
// This is to preserve services pointer
while (services.length)
services.pop();
// This is to preserve services pointer
while(services.length)
services.pop();
while(newS.length)
services.push(newS.pop());
while (newS.length)
services.push(newS.pop());
};
root.get = function() {