@ebay/ebayui-core
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -50,2 +50,8 @@ 'use strict';var _extends = Object.assign || function (target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i];for (var key in source) {if (Object.prototype.hasOwnProperty.call(source, key)) {target[key] = source[key];}}}return target;};var Expander = require('makeup-expander'); | ||
function onBeforeUpdate() { | ||
if (this.expander) { | ||
this.expander.cancelAsync(); | ||
} | ||
} | ||
function handleExpand() { | ||
@@ -63,3 +69,4 @@ this.emit('base-expand'); | ||
onRender: onRender, | ||
onBeforeUpdate: onBeforeUpdate, | ||
handleExpand: handleExpand, | ||
handleCollapse: handleCollapse }); |
@@ -15,9 +15,13 @@ 'use strict';var markoWidgets = require('marko-widgets'); | ||
var defs = this.getEl('defs'); | ||
var symbol = defs && defs.querySelector('symbol'); | ||
if (symbol) { | ||
// Here we get the name of the symbol by removing the `icon-` part. | ||
// We then mark this symbol as `defined` so that no other `ebay-icons` render it. | ||
defined[symbol.id.slice(5)] = true; | ||
rootSvg.appendChild(symbol); | ||
if (defs) { | ||
var symbol = defs.querySelector('symbol'); | ||
defs.parentNode.removeChild(defs); | ||
if (symbol) { | ||
// Here we get the name of the symbol by removing the `icon-` part. | ||
// We then mark this symbol as `defined` so that no other `ebay-icons` render it. | ||
defined[symbol.id.slice(5)] = true; | ||
rootSvg.appendChild(symbol); | ||
} | ||
} | ||
@@ -24,0 +28,0 @@ } |
{ | ||
"name": "@ebay/ebayui-core", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
935638
6583