# backbone-set-event **Repository Path**: mirrors_andyperlitch/backbone-set-event ## Basic Information - **Project Name**: backbone-set-event - **Description**: Triggers an event on backbone collections when Collection.set() is called - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # backbone-set-event Adds an event trigger to the Backbone.Collection.set method. When set() is called on a collection, a single 'update' function. This module exports Backbone. usage: var Backbone = require('backbone-set-event'); var c = new Backbone.Collection([ { id: "1", name: "andy" }, { id: "2", name: "scott" }, { id: "3", name: "tevya" } ]); c.on("update", function() { alert("This only fires once!"); }); c.set([ { id: "1", name: "Andy" }, { id: "2", name: "Scott" }, { id: "3", name: "Tevya" } ]);