From 66c15bd52d440c3962497dff87dcdfbdd1b87f7d Mon Sep 17 00:00:00 2001 From: Mike North Date: Sat, 22 Aug 2015 17:42:46 -0700 Subject: [PATCH] Yield index in collection block syntax --- addon/templates/components/md-collection.hbs | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addon/templates/components/md-collection.hbs b/addon/templates/components/md-collection.hbs index 7c4e1798..71fd2b13 100644 --- a/addon/templates/components/md-collection.hbs +++ b/addon/templates/components/md-collection.hbs @@ -1,6 +1,6 @@ {{#if _hasHeader}} {{view headerView}} {{/if}} -{{#each content as |item|}} - {{yield item}} +{{#each content as |item idx|}} + {{yield item idx}} {{/each}} diff --git a/package.json b/package.json index 884bf547..15840047 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ember-cli-materialize", "description": "An ember-cli addon for using Materialize (CSS Framework based on Material Design) in Ember applications.", - "version": "0.18.1", + "version": "0.18.2", "directories": { "doc": "doc", "test": "tests"