Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Gabrielsson committed Jun 2, 2024
1 parent 024933f commit 7772c18
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions nightly/front.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,32 +434,13 @@ var dom = {
// click or not
if (object.clicked) {
var value = object.value,
target = object.clicked,
tag = target.localName
target = object.clicked
} else {
var target = object instanceof Object ? object : dom.get(object),
tag = object.localName,
value = strip ? value.replace(/<[^>]+>/g, '') : value || ''
}

switch (tag) {
case 'img':
target.src = value
break
case 'a':
if (replace) value = target.href.replace(new RegExp('{' + replace + '}', 'g'), value)
target.innerHTML = value
break
case 'select':
target.setAttribute('select', value)
break
case 'title':
target.innerHTML = value
console.dir('weee')
break
default:
target.innerHTML = value
}
target.innerHTML = value
},

resize: function (object, value) {
Expand Down Expand Up @@ -576,6 +557,8 @@ var dom = {
},

set2: function (object, value) {
var object = typeof object === 'string' ? dom.get(object) : object

var tag = object.localName,
attr = object.callAttribute

Expand Down

0 comments on commit 7772c18

Please sign in to comment.