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

bamjs

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bamjs - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

5

package.json
{
"name": "bamjs",
"version": "0.7.0",
"version": "0.7.1",
"description": "Backbone with modifications. Adds heirarchy to Views, turns Views into Finite State Machines, adds a mixin for decorating methods and adds utility functions to Models and Collections.",

@@ -32,4 +32,3 @@ "main": "index.js",

"backbone": "~1.0.0",
"underscore": "~1.5.1",
"jquery-browserify": "~1.8.1"
"underscore": "~1.5.1"
},

@@ -36,0 +35,0 @@ "devDependencies": {

9

view.js
// Generated by CoffeeScript 1.6.3
(function() {
var $, Backbone, Decoratable, View, _,
var Backbone, Decoratable, View, _,
__hasProp = {}.hasOwnProperty,

@@ -12,4 +12,2 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },

$ = require('jquery-browserify');
Decoratable = require('./decoratable.js');

@@ -85,6 +83,9 @@

View.prototype.ensureClass = function(el, className) {
var existing, wanted, _ref;
if (className == null) {
className = this.className;
}
return $(el).addClass(className);
wanted = (_ref = className != null ? className.split(/\s+/) : void 0) != null ? _ref : [];
existing = el.className.split(/\s+/);
return el.className = _.uniq(existing.concat(wanted)).join(' ');
};

@@ -91,0 +92,0 @@

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