mirror of
https://github.com/gsi-upm/soil
synced 2024-11-23 03:32:28 +00:00
21 lines
410 B
JavaScript
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;
|
|
}
|
|
};
|