ribcage-gen
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -14,4 +14,5 @@ 'use strict'; | ||
}) | ||
, {{PascalName}} | ||
var {{PascalName}} = Base.extend({ | ||
{{PascalName}} = Base.extend({ | ||
@@ -40,6 +41,7 @@ template: require('./template.html.hbs') | ||
// always stopListening so we don't reattach multiple listeners | ||
if (this.state) this.stopListening(this.state) | ||
// listen to state, model, etc… events | ||
// this.listenTo(this.state, 'change:text', this.onStateChangeText) | ||
if (this.state){ | ||
this.stopListening(this.state) | ||
// listen to state, model, etc… events | ||
// this.listenTo(this.state, 'change:text', this.onStateChangeText) | ||
} | ||
} | ||
@@ -46,0 +48,0 @@ |
@@ -7,2 +7,9 @@ var test = require('prova') | ||
} | ||
, stopListening | ||
, setup = function setup(){ | ||
stopListening = sinon.spy({{PascalName}}.protoype, 'stopListening') | ||
} | ||
, cleanup = function cleanup(){ | ||
stopListening.restore() | ||
} | ||
@@ -24,12 +31,3 @@ test('{{PascalName}}: constructor', function(t){ | ||
, fn = view.bindEvents | ||
, stopListening | ||
function setup(){ | ||
stopListening = sinon.spy(view, 'stopListening') | ||
} | ||
function cleanup(){ | ||
stopListening.restore() | ||
} | ||
setup() | ||
@@ -36,0 +34,0 @@ |
@@ -9,2 +9,3 @@ 'use strict'; | ||
, react: 'react-component-template' | ||
, pane: 'backbone-pane-template' | ||
} | ||
@@ -11,0 +12,0 @@ |
{ | ||
"name": "ribcage-gen", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A generator script for ribcage components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
17247
25
456