How to use the incremental-dom.currentElement function in incremental-dom

To help you get started, we’ve selected a few incremental-dom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github davidjamesstone / superviews.js / examples / components / components.bundle.js View on Github external
},{"incremental-dom":9}],4:[function(require,module,exports){
var IncrementalDOM = require('incremental-dom')
var patch = IncrementalDOM.patch
var elementOpen = IncrementalDOM.elementOpen
var elementClose = IncrementalDOM.elementClose
var skip = IncrementalDOM.skip
var currentElement = IncrementalDOM.currentElement
var text = IncrementalDOM.text

var hoisted1 = ["type", "text"]
var __target

module.exports = function description (data) {
elementOpen("div")
  elementOpen("hr")
  elementClose("hr")
  elementOpen("input", "dae1eac0-34c9-4ad2-ba98-e5d88ad28b06", hoisted1, "value", data.name, "onkeyup", this.onChange)
  elementClose("input")
  elementOpen("span")
    text("" + (data.name) + "")
  elementClose("span")
elementClose("div")
}
github davidjamesstone / superviews.js / examples / custom-elements / custom-elements.bundle.js View on Github external
},{"../../client/patch":1,"./view.html":3,"document-register-element":4}],3:[function(require,module,exports){
var IncrementalDOM = require('incremental-dom')
var patch = IncrementalDOM.patch
var elementOpen = IncrementalDOM.elementOpen
var elementClose = IncrementalDOM.elementClose
var skip = IncrementalDOM.skip
var currentElement = IncrementalDOM.currentElement
var text = IncrementalDOM.text

var hoisted1 = ["type", "text"]
var hoisted2 = ["name", "wed"]
var hoisted3 = ["href", "#"]
var __target

module.exports = function description (data) {
elementOpen("form")
  elementOpen("input", "4a4f60ba-06a6-4b83-bbbc-f683c6f92a35", hoisted1, "value", data.name)
  elementClose("input")
  elementOpen("span")
    text("" + (data.name) + "")
  elementClose("span")
  elementOpen("x-sub", "d535f020-be3d-49f0-82cd-6101eb360bf1", hoisted2)
    if (true) {