Commit 4ba6d7a3 authored by techird's avatar techird

querySelector

parent 7122c4e8
......@@ -42,7 +42,7 @@ define(function(require, exports, module) {
renderTo: function(target) {
if (typeof(target) == 'string') {
target = document.getElementById(target);
target = document.querySelector(target);
}
if (target) {
if (target.tagName.toLowerCase() == 'script') {
......
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