@bolt/core
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -7,9 +7,9 @@ // import * as boltSpacingSizes from '@bolt/core/data/spacing-sizes.js'; | ||
export const spacingSizes = { | ||
"xxsmall": "0.25rem", | ||
"xsmall": "0.5rem", | ||
"small": "1rem", | ||
"medium": "2rem", | ||
"large": "4rem", | ||
"xlarge": "8rem", | ||
"xxlarge": "16rem", | ||
'xxsmall': '0.25rem', | ||
'xsmall': '0.5rem', | ||
'small': '1rem', | ||
'medium': '2rem', | ||
'large': '4rem', | ||
'xlarge': '8rem', | ||
'xxlarge': '16rem', | ||
}; |
{ | ||
"name": "@bolt/core", | ||
"description": "Core dependencies, utils, etc.", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -25,9 +25,9 @@ require('es6-promise').polyfill(); | ||
(function () { | ||
if (typeof window.CustomEvent === "function") return false; | ||
if (typeof window.CustomEvent === 'function') return false; | ||
function CustomEvent(event, params) { | ||
params = params || { bubbles: false, cancelable: false, detail: undefined }; | ||
var evt = document.createEvent('CustomEvent'); | ||
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); | ||
return evt; | ||
} | ||
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); | ||
return evt; | ||
} | ||
CustomEvent.prototype = window.Event.prototype; | ||
@@ -34,0 +34,0 @@ window.CustomEvent = CustomEvent; |
@@ -36,3 +36,3 @@ // Via https://github.com/webcomponents/webcomponents-platform/blob/master/webcomponents-platform.js | ||
Object.defineProperty(this, 'defaultPrevented', { | ||
get: function () { | ||
get () { | ||
return true; | ||
@@ -39,0 +39,0 @@ }, |
@@ -91,11 +91,11 @@ // HyperHTML Renderer ported to SkateJS | ||
this.childNodes.forEach(function (child, index, nodelist) { | ||
const slotName = child.getAttribute ? child.getAttribute("slot") : null; | ||
const slotName = child.getAttribute ? child.getAttribute('slot') : null; | ||
if (!slotName) { | ||
if (!slotName) { | ||
elem.slots.default.push(child); | ||
} else { | ||
} else { | ||
elem.slots[slotName] = child; | ||
} | ||
}); | ||
} | ||
} | ||
}); | ||
} | ||
@@ -102,0 +102,0 @@ get renderRoot() { |
@@ -6,5 +6,5 @@ /* Feature detection for passive event listeners to improve scrolling performance in browsers supporting it (ie. Chrome) - test based off of https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listeners */ | ||
try { | ||
window.addEventListener("test", null, Object.defineProperty({}, "passive", { get: function () { isPassiveSupported = true; } })); | ||
window.addEventListener('test', null, Object.defineProperty({}, 'passive', { get () { isPassiveSupported = true; } })); | ||
} catch (err) { } | ||
export const passiveSupported = isPassiveSupported; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
140625