Skip to content

Commit

Permalink
Build dist/
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Medeiros committed Jul 29, 2015
1 parent 144f5fb commit 3d36837
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
35 changes: 19 additions & 16 deletions dist/cycle-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -13972,7 +13972,6 @@ var applyProperties = require("./apply-properties")
var isWidget = require("../vnode/is-widget.js")
var VPatch = require("../vnode/vpatch.js")

var render = require("./create-element")
var updateWidget = require("./update-widget")

module.exports = applyPatch
Expand Down Expand Up @@ -14020,7 +14019,7 @@ function removeNode(domNode, vNode) {
}

function insertNode(parentNode, vNode, renderOptions) {
var newNode = render(vNode, renderOptions)
var newNode = renderOptions.render(vNode, renderOptions)

if (parentNode) {
parentNode.appendChild(newNode)
Expand All @@ -14037,7 +14036,7 @@ function stringPatch(domNode, leftVNode, vText, renderOptions) {
newNode = domNode
} else {
var parentNode = domNode.parentNode
newNode = render(vText, renderOptions)
newNode = renderOptions.render(vText, renderOptions)

if (parentNode && newNode !== domNode) {
parentNode.replaceChild(newNode, domNode)
Expand All @@ -14054,7 +14053,7 @@ function widgetPatch(domNode, leftVNode, widget, renderOptions) {
if (updating) {
newNode = widget.update(leftVNode, domNode) || domNode
} else {
newNode = render(widget, renderOptions)
newNode = renderOptions.render(widget, renderOptions)
}

var parentNode = domNode.parentNode
Expand All @@ -14072,7 +14071,7 @@ function widgetPatch(domNode, leftVNode, widget, renderOptions) {

function vNodePatch(domNode, leftVNode, vNode, renderOptions) {
var parentNode = domNode.parentNode
var newNode = render(vNode, renderOptions)
var newNode = renderOptions.render(vNode, renderOptions)

if (parentNode && newNode !== domNode) {
parentNode.replaceChild(newNode, domNode)
Expand Down Expand Up @@ -14120,16 +14119,21 @@ function replaceRoot(oldRoot, newRoot) {
return newRoot;
}

},{"../vnode/is-widget.js":105,"../vnode/vpatch.js":108,"./apply-properties":87,"./create-element":88,"./update-widget":92}],91:[function(require,module,exports){
},{"../vnode/is-widget.js":105,"../vnode/vpatch.js":108,"./apply-properties":87,"./update-widget":92}],91:[function(require,module,exports){
var document = require("global/document")
var isArray = require("x-is-array")

var render = require("./create-element")
var domIndex = require("./dom-index")
var patchOp = require("./patch-op")
module.exports = patch

function patch(rootNode, patches) {
return patchRecursive(rootNode, patches)
function patch(rootNode, patches, renderOptions) {
renderOptions = renderOptions || {}
renderOptions.patch = renderOptions.patch || patchRecursive
renderOptions.render = renderOptions.render || render

return renderOptions.patch(rootNode, patches, renderOptions)
}

function patchRecursive(rootNode, patches, renderOptions) {
Expand All @@ -14142,11 +14146,8 @@ function patchRecursive(rootNode, patches, renderOptions) {
var index = domIndex(rootNode, patches.a, indices)
var ownerDocument = rootNode.ownerDocument

if (!renderOptions) {
renderOptions = { patch: patchRecursive }
if (ownerDocument !== document) {
renderOptions.document = ownerDocument
}
if (!renderOptions.document && ownerDocument !== document) {
renderOptions.document = ownerDocument
}

for (var i = 0; i < indices.length; i++) {
Expand Down Expand Up @@ -14198,7 +14199,7 @@ function patchIndices(patches) {
return indices
}

},{"./dom-index":89,"./patch-op":90,"global/document":83,"x-is-array":85}],92:[function(require,module,exports){
},{"./create-element":88,"./dom-index":89,"./patch-op":90,"global/document":83,"x-is-array":85}],92:[function(require,module,exports){
var isWidget = require("../vnode/is-widget.js")

module.exports = updateWidget
Expand Down Expand Up @@ -14366,6 +14367,8 @@ function h(tagName, properties, children) {
function addChild(c, childNodes, tag, props) {
if (typeof c === 'string') {
childNodes.push(new VText(c));
} else if (typeof c === 'number') {
childNodes.push(new VText(String(c)));
} else if (isChild(c)) {
childNodes.push(c);
} else if (isArray(c)) {
Expand Down Expand Up @@ -14442,7 +14445,7 @@ function errorString(obj) {

var split = require('browser-split');

var classIdSplit = /([\.#]?[a-zA-Z0-9_:-]+)/;
var classIdSplit = /([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/;
var notClassId = /^\.|#/;

module.exports = parseTag;
Expand Down Expand Up @@ -15539,7 +15542,7 @@ function keyIndex(children) {

return {
keys: keys, // A hash of key name to index
free: free, // An array of unkeyed item indices
free: free // An array of unkeyed item indices
}
}

Expand Down
Loading

0 comments on commit 3d36837

Please sign in to comment.