Skip to content

Commit c8caf83

Browse files
2.2.1
1 parent 26ff8a7 commit c8caf83

7 files changed

Lines changed: 19 additions & 15 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "riot",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "A React- like, 3.5K user interface library",
55
"homepage": "https://muut.com/riotjs/",
66
"repository": { "type": "git", "url": "git://github.com/riot/riot.git" },

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "riot",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "A React- like, 3.5K user interface library",
55
"repository": "muut/riotjs",
66
"license": "MIT",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "riot",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "A React- like, 3.5K user interface library",
55
"homepage": "https://muut.com/riotjs/",
66
"repository": "muut/riotjs",

riot+compiler.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/* Riot v2.2.0, @license MIT, (c) 2015 Muut Inc. + contributors */
1+
/* Riot v2.2.1, @license MIT, (c) 2015 Muut Inc. + contributors */
22

33
;(function(window) {
44
'use strict'
5-
var riot = { version: 'v2.2.0', settings: {} }
5+
var riot = { version: 'v2.2.1', settings: {} }
66

77
// This globals 'const' helps code size reduction
88

@@ -487,7 +487,8 @@ function _each(dom, parent, expr) {
487487
(tags[i] = new Tag({ tmpl: template }, {
488488
parent: parent,
489489
isLoop: true,
490-
root: root
490+
root: root,
491+
item: _item
491492
})
492493
).mount()
493494

@@ -613,6 +614,7 @@ function Tag(impl, conf, innerHTML) {
613614
dom = mkdom(impl.tmpl),
614615
parent = conf.parent,
615616
isLoop = conf.isLoop,
617+
item = conf.item,
616618
expressions = [],
617619
childTags = [],
618620
root = conf.root,
@@ -648,7 +650,7 @@ function Tag(impl, conf, innerHTML) {
648650
// it could be handy to use it also to improve the virtual dom rendering speed
649651
this._id = fastAbs(~~(new Date().getTime() * Math.random()))
650652

651-
extend(this, { parent: parent, root: root, opts: opts, tags: {} })
653+
extend(this, { parent: parent, root: root, opts: opts, tags: {} }, item)
652654

653655
// grab attributes
654656
each(root.attributes, function(el) {

riot+compiler.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

riot.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/* Riot v2.2.0, @license MIT, (c) 2015 Muut Inc. + contributors */
1+
/* Riot v2.2.1, @license MIT, (c) 2015 Muut Inc. + contributors */
22

33
;(function(window) {
44
'use strict'
5-
var riot = { version: 'v2.2.0', settings: {} }
5+
var riot = { version: 'v2.2.1', settings: {} }
66

77
// This globals 'const' helps code size reduction
88

@@ -487,7 +487,8 @@ function _each(dom, parent, expr) {
487487
(tags[i] = new Tag({ tmpl: template }, {
488488
parent: parent,
489489
isLoop: true,
490-
root: root
490+
root: root,
491+
item: _item
491492
})
492493
).mount()
493494

@@ -613,6 +614,7 @@ function Tag(impl, conf, innerHTML) {
613614
dom = mkdom(impl.tmpl),
614615
parent = conf.parent,
615616
isLoop = conf.isLoop,
617+
item = conf.item,
616618
expressions = [],
617619
childTags = [],
618620
root = conf.root,
@@ -648,7 +650,7 @@ function Tag(impl, conf, innerHTML) {
648650
// it could be handy to use it also to improve the virtual dom rendering speed
649651
this._id = fastAbs(~~(new Date().getTime() * Math.random()))
650652

651-
extend(this, { parent: parent, root: root, opts: opts, tags: {} })
653+
extend(this, { parent: parent, root: root, opts: opts, tags: {} }, item)
652654

653655
// grab attributes
654656
each(root.attributes, function(el) {

riot.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)