Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ampersand-view

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ampersand-view - npm Package Compare versions

Comparing version 6.0.4 to 6.0.5

3

ampersand-view.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc