ampersand-view
Advanced tools
Comparing version 6.0.4 to 6.0.5
var State = require('ampersand-state'); | ||
var Events = require('backbone-events-standalone'); | ||
var CollectionView = require('ampersand-collection-view'); | ||
@@ -130,3 +129,3 @@ var domify = require('domify'); | ||
// Remove this view by taking the element out of the DOM, and removing any | ||
// applicable Backbone.Events listeners. | ||
// applicable events listeners. | ||
remove: function () { | ||
@@ -133,0 +132,0 @@ var parsedBindings = this._parsedBindings; |
{ | ||
"name": "ampersand-view", | ||
"description": "A smart base view for Backbone apps, to make it easy to bind collections and properties to the DOM.", | ||
"version": "6.0.4", | ||
"version": "6.0.5", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -10,6 +10,5 @@ "browser": "./ampersand-view.js", | ||
"ampersand-collection-view": "^1.0.0", | ||
"ampersand-dom-bindings": "^2.1.0", | ||
"ampersand-state": "^4.2.7", | ||
"backbone-events-standalone": "^0.2.1", | ||
"component-classes": "^1.0.0", | ||
"ampersand-dom-bindings": "^2.1.0", | ||
"domify": "^1.0.0", | ||
@@ -16,0 +15,0 @@ "events-mixin": "^1.1.0", |
var test = require('tape'); | ||
var Model = require('ampersand-model'); | ||
var AmpersandModel = require('ampersand-model'); | ||
var AmpersandView = require('../ampersand-view'); | ||
@@ -9,3 +9,3 @@ | ||
var Model = Model.extend({ | ||
var Model = AmpersandModel.extend({ | ||
props: { | ||
@@ -98,3 +98,3 @@ id: 'number', | ||
}); | ||
var view = new View(); | ||
new View(); | ||
}); | ||
@@ -239,3 +239,3 @@ | ||
var View = AmpersandView.extend({ | ||
template: '<li><span></span><img/></li>', | ||
template: '<li><span></span><img/></li>' | ||
}); | ||
@@ -253,3 +253,2 @@ var view = new View(); | ||
view.renderWithTemplate(); | ||
var usenameEl = view.getByRole('username'); | ||
t.ok(view.getByRole('username') instanceof Element, 'should find username element'); | ||
@@ -256,0 +255,0 @@ t.ok(view.getByRole('user-avatar') instanceof Element, 'should find username'); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9
58941
1071
- Removedbackbone-events-standalone@^0.2.1
- Removedbackbone-events-standalone@0.2.7(transitive)