lib/assets/javascripts/transistor-backbone.js in transistor-0.1.9 vs lib/assets/javascripts/transistor-backbone.js in transistor-0.1.10

- old
+ new

@@ -5,13 +5,14 @@ } (function (transistor) { var BackboneCollection = (function () { return function (options) { - var Backbone, channel, radio, control, H, backbone_collection, collection_interface, control_interface, binder; + var Backbone, U, channel, radio, control, H, backbone_collection, collection_interface, control_interface, binder; Backbone = options.backbone; + U = options.underscore; channel = options.channel; radio = options.radio; control = options.control; @@ -20,10 +21,10 @@ }; }()); backbone_collection = new Backbone.Collection(); backbone_collection.on('change', function (model) { - var entry = _.clone(model.attributes), + var entry = U.clone(model.attributes), id = model.id; if (!control) { throw "BackboneCollection is not mutable by user. The model with id "+model.id+" has been changed"; } else {