Commit fa602064 authored by Zéfling's avatar Zéfling 🎨
Browse files

fix name function for baku.dom

parent 2d6251d5
......@@ -8,10 +8,9 @@ baku.dom = {
/**
* get a elements by name ( name="xxx" )
* @param name the name element
* @param element base HTMLElement
* @return HTMLElement
*/
'name' : function (name, element) { return (element || document).getElementsByName(name); },
'name' : function (name) { return document.getElementsByName(name); },
/**
* get all elements that containts all classes list in params ( class="xxx yyy" )
* @param classes class list (separete with space)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment