Sha256: c3890bf936eea0adc162ebaba64cad317488379b347b37cfc57cdfa9bf0a63ff
Contents?: true
Size: 479 Bytes
Versions: 19
Compression:
Stored size: 479 Bytes
Contents
(function() { Backbone.Model.prototype.match = function(test, keys) { var values; if (keys == null) { keys = null; } values = (keys != null) && keys !== true ? _.values(this.pick.apply(this, keys)) : this.values(); if (_.isRegExp(test)) { return _.some(values, function(attr) { return test.test(attr); }); } else { return _.some(values, function(attr) { return attr === test; }); } }; }).call(this);
Version data entries
19 entries across 19 versions & 1 rubygems