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.5 to 0.7.6

2

package.json
{
"name": "bamjs",
"version": "0.7.5",
"version": "0.7.6",
"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.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -82,6 +82,9 @@ // Generated by CoffeeScript 1.6.3

View.prototype.ensureClass = function(el, className) {
var existing, wanted, _ref;
var existing, wanted, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
if (className == null) {
className = this.className;
}
if (el.jQuery) {
return el.addClass(className);
}
if (!className) {

@@ -91,4 +94,10 @@ return;

wanted = (_ref = className != null ? className.split(/\s+/) : void 0) != null ? _ref : [];
existing = el.className.split(/\s+/);
return el.className = _.uniq(existing.concat(wanted)).join(' ');
switch (typeof el.className) {
case 'string':
existing = (_ref1 = (_ref2 = el.className) != null ? _ref2.split(/\s+/) : void 0) != null ? _ref1 : [];
return el.className = _.uniq(existing.concat(wanted)).join(' ');
case 'object':
existing = (_ref3 = (_ref4 = el.className) != null ? (_ref5 = _ref4.baseVal) != null ? _ref5.split(/\s+/) : void 0 : void 0) != null ? _ref3 : [];
return (_ref6 = el.className) != null ? _ref6.baseVal = _.uniq(existing.concat(wanted)).join(' ') : void 0;
}
};

@@ -95,0 +104,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