- commit
- 9e60a38c6f7be3d62ee659418918378f444b430a
- parent
- 7ba6c3abc3d706d6c1f79d8523908dbb9f44acf9
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2015-07-19 18:27
implement replace in jqlite
Diffstat
| M | plutopluto/static/jqlite.js | 3 | +++ |
1 files changed, 3 insertions, 0 deletions
diff --git a/plutopluto/static/jqlite.js b/plutopluto/static/jqlite.js
@@ -35,6 +35,9 @@ var $ = function(query) {
35 35 ob.append = function(element) {
36 36 ob.target.appendChild(element.target);
37 37 };
-1 38 ob.replace = function(element) {
-1 39 ob.target.parentNode.replaceChild(element.target, ob.target);
-1 40 }
38 41
39 42 return ob;
40 43 };