ember-block-slots
Advanced tools
Comparing version
@@ -32,2 +32,5 @@ import Ember from 'ember' | ||
/** @type {String} */ | ||
name: null, | ||
/** @type {?Object} */ | ||
@@ -60,3 +63,11 @@ yieldedSlot: null, | ||
this._super() | ||
this.componentInit() | ||
}, | ||
/** | ||
* Verifies a name property is passed in and sets up the initial state | ||
* | ||
* @returns {undefined} | ||
*/ | ||
componentInit () { | ||
assert('You must include a name for your block', this.name) | ||
@@ -63,0 +74,0 @@ |
@@ -32,3 +32,11 @@ import Ember from 'ember' | ||
this._super() | ||
this.componentInit() | ||
}, | ||
/** | ||
* Verifies a name property is passed in and sets up the initial state | ||
* | ||
* @returns {undefined} | ||
*/ | ||
componentInit () { | ||
assert('You must include a name for your slot', this.name) | ||
@@ -35,0 +43,0 @@ |
{ | ||
"name": "ember-block-slots", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Support for targeted yield slots within a component block", | ||
@@ -33,3 +33,3 @@ "directories": { | ||
"ember-cli-jsdoc": "~1.4.0", | ||
"ember-cli-mocha": "0.10.1", | ||
"ember-cli-mocha": "0.10.2", | ||
"ember-cli-release": "0.2.8", | ||
@@ -48,2 +48,3 @@ "ember-cli-sass": "^5.3.1", | ||
"ember-resolver": "^2.0.3", | ||
"ember-sinon": "0.5.0", | ||
"ember-try": "^0.2.0", | ||
@@ -50,0 +51,0 @@ "eslint": "2.2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1075922
0.31%829
2.22%30
3.45%