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

Add alias for getElementsByClassName on elements

parent 7841574e
Pipeline #2 failed with stage
......@@ -196,6 +196,11 @@ Element.prototype._getById = function (id) {
return undefined;
}
/**
* alias for getElementsByClassName
*/
Element.prototype._getByClass = function (selector) { return this.getElementsByClassName(selector) }
/**
* alias for querySelector
*/
......
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