1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-15 07:52:28 +00:00
soil/templates/js_old/helper.js

21 lines
410 B
JavaScript
Raw Normal View History

2017-12-15 16:59:50 +00:00
var _helpers = {
attributesInterval: function (attributes, callback) {
for ( var property in attributes ) {
for ( var i = 0; i < attributes[property].length; i++ ) {
attributes[property][i].interval.forEach(function(d) {
callback(d);
});
}
}
},
dynamicAttsToArray: function(atts) {
var array = []
for ( var property in atts ) {
array.push(property)
}
return array;
}
};