Skip to content
Snippets Groups Projects
Commit 9611acbd authored by Commander-lol's avatar Commander-lol
Browse files

Added mu.byID as a more efficient way of getting a single tinyDOM object by ID

parent 0fcd459f
No related branches found
No related tags found
No related merge requests found
...@@ -136,6 +136,10 @@ ...@@ -136,6 +136,10 @@
} }
} }
tinyDOM.byID = function(id){
return tinyDOM(document.getElementById(id));
}
tinyDOM.ajax = function(options) { tinyDOM.ajax = function(options) {
var req = new XMLHttpRequest(); var req = new XMLHttpRequest();
var _this = this; var _this = this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment