// Method for getting an element by id
SVG.get = function(id) {
var node = document.getElementById(idFromReference(id) || id)
if (node) return SVG.adopt(node)
}
// Select elements by query string
SVG.select = function(query, parent) {
return new SVG.Set(
SVG.utils.map((parent || document).querySelectorAll(query), function(node) {
return SVG.adopt(node)
})
)
}
SVG.extend(SVG.Parent, {
// Scoped select method
select: function(query) {
return SVG.select(query, this.node)
}
})ref='/'>
index : redmine.git | |
Mirror of redmine code source: https://github.com/redmine/redmine | www-data |
blob: e09afc3db6dc1e7e54f182acbdbac12f8c8de900 (
plain)