From c041263c79546a322e11e3c1ed8aebf56219bb32 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 22 Sep 2014 14:16:00 +0200 Subject: [PATCH] add tests --- source/Ox/js/DOM.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/Ox/js/DOM.js b/source/Ox/js/DOM.js index dd1284a0..7663a4be 100644 --- a/source/Ox/js/DOM.js +++ b/source/Ox/js/DOM.js @@ -12,6 +12,10 @@ Ox.$ Generic HTML element, mimics jQuery false > Ox.$('
').addClass('red').addClass('red')[0].className 'red' + > Ox.$('').append(Ox.$('')).children('b').length + 1 + > Ox.$('').appendTo(Ox.$('')).parents('a').length + 1 > Ox.$('
').attr({id: 'red'}).attr('id') 'red' > Ox.$('
').attr({id: 'red'}).removeAttr('id').attr('id') @@ -22,10 +26,10 @@ Ox.$ Generic HTML element, mimics jQuery 'red' > Ox.$('
').html('red').empty().html() '' - > Ox.$('').val('red').val() - 'red' > !!Ox.$('
').on({click: function(e) { Ox.test(e.type, 'click'); }}).trigger('click') true + > Ox.$('').val('red').val() + 'red' @*/ Ox.$ = Ox.element = function $(value) {