mirror of
https://github.com/gsi-upm/soil
synced 2024-11-14 23:42:29 +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;
|
||
|
}
|
||
|
};
|