1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-14 23:42:29 +00:00
soil/templates/js_old/helper.js
2017-12-15 17:59:50 +01:00

21 lines
410 B
JavaScript

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;
}
};