Comparing version 0.7.0 to 0.7.1
{ | ||
"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": { |
// 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 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25662
2
657
0
- Removedjquery-browserify@~1.8.1
- Removedjquery-browserify@1.8.1(transitive)