UNPKG

noide

Version:

Web Editor built on hapi and nes websockets using browserify, superviews.js, bootstrap and the ACE editor.

19 lines (16 loc) 445 B
var IncrementalDOM = require('incremental-dom') var patch = IncrementalDOM.patch // Fix up the element `value` attribute IncrementalDOM.attributes.value = function (el, name, value) { el.value = value } module.exports = function (el, view, data) { var args = Array.prototype.slice.call(arguments) if (args.length <= 3) { patch(el, view, data) } else { patch(el, function () { view.apply(this, args.slice(2)) }) } }