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

backbone-callbacks

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-callbacks - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

4

backbone-callbacks-min.js

@@ -1,2 +0,2 @@

/* backbone-callbacks - v0.1.3 - 2012-06-25 */
(function(a){var b=a._||require("underscore")._,c=a.Backbone||require("backbone"),d=function(a,c){return function(){var d=b.toArray(arguments),e=d[d.length-1];if(typeof e=="function"){d.splice(-1,1),d.length===0&&d.push({}),d.length===1&&a==="save"&&d.push({});var f=d[d.length-1];f.success=function(a,b){e(null,b)},f.error=function(a,b){e(b,null)}}return c.apply(this,d)}};typeof module!="undefined"&&typeof module.exports!="undefined"?module.exports=d:a.BackboneCallbacks=d,d.attach=function(a){b.each(["save","destroy","fetch"],function(b){a.Model.prototype[b]=new d(b,a.Model.prototype[b])}),b.each(["fetch"],function(b){a.Collection.prototype[b]=new d(b,a.Collection.prototype[b])})},d.attach(c)})(this);
/* backbone-callbacks - v0.1.6 - 2014-01-06 */
(function(e){var t=e._||require("underscore")._,n=e.Backbone||require("backbone"),r=function(e,n){return function(){var r=t.toArray(arguments),i=r[r.length-1];if(typeof i=="function"){r.splice(-1,1),r.length===0&&r.push({}),r.length===1&&e==="save"&&r.push({});var s=r[r.length-1];s.success=function(e,t){i(null,t)},s.error=function(e,t){i(t,null)}}return n.apply(this,r)}};typeof module!="undefined"&&typeof module.exports!="undefined"?module.exports=r:e.BackboneCallbacks=r,r.attach=function(e){t.each(["save","destroy","fetch"],function(t){e.Model.prototype[t]=new r(t,e.Model.prototype[t])}),t.each(["fetch"],function(t){e.Collection.prototype[t]=new r(t,e.Collection.prototype[t])})},r.attach(n)})(this);

@@ -1,2 +0,2 @@

// BackboneCallbacks.js (c) 2012 Loren West and other contributors
// BackboneCallbacks.js (c) 2012-2014 Loren West and other contributors
// Node-monitor may be freely distributed under the MIT license.

@@ -3,0 +3,0 @@ // For all details and documentation:

@@ -1,2 +0,2 @@

// grunt.js (c) 2012 Loren West and other contributors
// grunt.js (c) 2012-2014 Loren West and other contributors
// Node-monitor may be freely distributed under the MIT license.

@@ -3,0 +3,0 @@ // For all details and documentation:

@@ -0,1 +1,6 @@

0.1.6 / 2014-01-06
==================
* Updated copyright year
0.1.5 / 2013-10-04

@@ -2,0 +7,0 @@ ==================

{
"name": "backbone-callbacks",
"version": "0.1.5",
"version": "0.1.6",
"main": "./backbone-callbacks.js",

@@ -5,0 +5,0 @@ "description": "Anonymous callback style interface for Backbone.js async methods",

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