Skip to content

Commit

Permalink
4.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Jan 3, 2020
1 parent 65afa79 commit 7603d73
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "riot",
"version": "4.8.1",
"version": "4.8.2",
"description": "Simple and elegant component-based UI library",
"homepage": "https://riot.js.org/",
"repository": "riot/riot",
Expand Down
23 changes: 17 additions & 6 deletions riot+compiler.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions riot+compiler.min.js

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions riot.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Riot v4.8.1, @license MIT */
/* Riot v4.8.2, @license MIT */
const COMPONENTS_IMPLEMENTATION_MAP = new Map(),
DOM_COMPONENT_INSTANCE_PROPERTY = Symbol('riot-component'),
PLUGINS_SET = new Set(),
Expand Down Expand Up @@ -577,6 +577,16 @@ function isSvg(el) {
function isTemplate(el) {
return !isNil(el.content);
}
/**
* Check that will be passed if its argument is a function
* @param {*} value - value to check
* @returns {boolean} - true if the value is a function
*/


function isFunction$1(value) {
return checkType$1(value, 'function');
}
/**
* Check if a value is a Boolean
* @param {*} value - anything
Expand Down Expand Up @@ -959,7 +969,7 @@ function attributeExpression(node, _ref5, value, oldValue) {
} // handle boolean attributes


if (isBoolean(value) || isObject(value)) {
if (isBoolean(value) || isObject(value) || isFunction$1(value)) {
node[name] = value;
}

Expand All @@ -973,7 +983,7 @@ function attributeExpression(node, _ref5, value, oldValue) {


function getMethod(value) {
return isNil(value) || value === false || value === '' || isObject(value) ? REMOVE_ATTRIBUTE : SET_ATTIBUTE;
return isNil(value) || value === false || value === '' || isObject(value) || isFunction$1(value) ? REMOVE_ATTRIBUTE : SET_ATTIBUTE;
}
/**
* Get the value as string
Expand Down Expand Up @@ -2530,7 +2540,7 @@ function pure(func) {
}
/** @type {string} current riot version */

const version = 'v4.8.1'; // expose some internal stuff that might be used from external tools
const version = 'v4.8.2'; // expose some internal stuff that might be used from external tools

const __ = {
cssManager,
Expand Down
18 changes: 14 additions & 4 deletions riot.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Riot v4.8.1, @license MIT */
/* Riot v4.8.2, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
Expand Down Expand Up @@ -583,6 +583,16 @@
function isTemplate(el) {
return !isNil(el.content);
}
/**
* Check that will be passed if its argument is a function
* @param {*} value - value to check
* @returns {boolean} - true if the value is a function
*/


function isFunction$1(value) {
return checkType$1(value, 'function');
}
/**
* Check if a value is a Boolean
* @param {*} value - anything
Expand Down Expand Up @@ -965,7 +975,7 @@
} // handle boolean attributes


if (isBoolean(value) || isObject(value)) {
if (isBoolean(value) || isObject(value) || isFunction$1(value)) {
node[name] = value;
}

Expand All @@ -979,7 +989,7 @@


function getMethod(value) {
return isNil(value) || value === false || value === '' || isObject(value) ? REMOVE_ATTRIBUTE : SET_ATTIBUTE;
return isNil(value) || value === false || value === '' || isObject(value) || isFunction$1(value) ? REMOVE_ATTRIBUTE : SET_ATTIBUTE;
}
/**
* Get the value as string
Expand Down Expand Up @@ -2536,7 +2546,7 @@
}
/** @type {string} current riot version */

const version = 'v4.8.1'; // expose some internal stuff that might be used from external tools
const version = 'v4.8.2'; // expose some internal stuff that might be used from external tools

const __ = {
cssManager,
Expand Down
Loading

0 comments on commit 7603d73

Please sign in to comment.