| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 define(["console"], function(console) { | 5 define(function() { |
| 6 // Equality function based on isEqual in | 6 // Equality function based on isEqual in |
| 7 // Underscore.js 1.5.2 | 7 // Underscore.js 1.5.2 |
| 8 // http://underscorejs.org | 8 // http://underscorejs.org |
| 9 // (c) 2009-2013 Jeremy Ashkenas, | 9 // (c) 2009-2013 Jeremy Ashkenas, |
| 10 // DocumentCloud, | 10 // DocumentCloud, |
| 11 // and Investigative Reporters & Editors | 11 // and Investigative Reporters & Editors |
| 12 // Underscore may be freely distributed under the MIT license. | 12 // Underscore may be freely distributed under the MIT license. |
| 13 // | 13 // |
| 14 function has(obj, key) { | 14 function has(obj, key) { |
| 15 return obj.hasOwnProperty(key); | 15 return obj.hasOwnProperty(key); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 var bound = predicates[name].bind(null, actual); | 280 var bound = predicates[name].bind(null, actual); |
| 281 this[name] = check(bound); | 281 this[name] = check(bound); |
| 282 this.not[name] = check(negate(bound)); | 282 this.not[name] = check(negate(bound)); |
| 283 }, this); | 283 }, this); |
| 284 } | 284 } |
| 285 | 285 |
| 286 return function(actual) { | 286 return function(actual) { |
| 287 return new Condition(actual); | 287 return new Condition(actual); |
| 288 }; | 288 }; |
| 289 }); | 289 }); |
| OLD | NEW |