New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.6.2 to 0.6.3

18

build/bam.js

@@ -602,3 +602,3 @@ (function(e){if("function"==typeof bootstrap)bootstrap("bam",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeBam=e}else"undefined"!=typeof window?window.Bam=e():global.Bam=e()})(function(){var define,ses,bootstrap,module,exports;

View.prototype.changeState = function(state, options) {
var pkg, success, trans,
var pkg, success, trans, _ref,
_this = this;

@@ -622,3 +622,3 @@ trans = this.calcTransition(this.state, state);

this.state = state;
if (_.isFunction(this[this.states[state]])) {
if (_.isFunction(this[(_ref = this.states) != null ? _ref[state] : void 0])) {
this[this.states[state]](options);

@@ -666,5 +666,5 @@ }

View.prototype.calcTransition = function(from, to) {
var key, t, transitions,
var key, t, transitions, _ref, _ref1,
_this = this;
transitions = this.transitions[from + ' ' + to];
transitions = (_ref = this.transitions) != null ? _ref[from + ' ' + to] : void 0;
if (!transitions) {

@@ -676,3 +676,3 @@ key = _.chain(this.transitions).keys().filter(function(t) {

}).first().value();
transitions = this.transitions[key];
transitions = (_ref1 = this.transitions) != null ? _ref1[key] : void 0;
}

@@ -684,7 +684,7 @@ if (_.isFunction(transitions)) {

return (function() {
var _i, _len, _ref, _results;
_ref = transitions.split(' ');
var _i, _len, _ref2, _results;
_ref2 = transitions.split(' ');
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
t = _ref[_i];
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
t = _ref2[_i];
_results.push(this[t]);

@@ -691,0 +691,0 @@ }

@@ -258,3 +258,3 @@ // Generated by CoffeeScript 1.6.3

View.prototype.changeState = function(state, options) {
var pkg, success, trans,
var pkg, success, trans, _ref,
_this = this;

@@ -278,3 +278,3 @@ trans = this.calcTransition(this.state, state);

this.state = state;
if (_.isFunction(this[this.states[state]])) {
if (_.isFunction(this[(_ref = this.states) != null ? _ref[state] : void 0])) {
this[this.states[state]](options);

@@ -322,5 +322,5 @@ }

View.prototype.calcTransition = function(from, to) {
var key, t, transitions,
var key, t, transitions, _ref, _ref1,
_this = this;
transitions = this.transitions[from + ' ' + to];
transitions = (_ref = this.transitions) != null ? _ref[from + ' ' + to] : void 0;
if (!transitions) {

@@ -332,3 +332,3 @@ key = _.chain(this.transitions).keys().filter(function(t) {

}).first().value();
transitions = this.transitions[key];
transitions = (_ref1 = this.transitions) != null ? _ref1[key] : void 0;
}

@@ -340,7 +340,7 @@ if (_.isFunction(transitions)) {

return (function() {
var _i, _len, _ref, _results;
_ref = transitions.split(' ');
var _i, _len, _ref2, _results;
_ref2 = transitions.split(' ');
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
t = _ref[_i];
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
t = _ref2[_i];
_results.push(this[t]);

@@ -347,0 +347,0 @@ }

{
"name": "bamjs",
"version": "0.6.2",
"version": "0.6.3",
"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": "lib/index.js",

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