| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This is part of jsdifflib v1.0. <http://snowtide.com/jsdifflib> | 2 * This is part of jsdifflib v1.0. <http://snowtide.com/jsdifflib> |
| 3 * | 3 * |
| 4 * Copyright (c) 2007, Snowtide Informatics Systems, Inc. | 4 * Copyright (c) 2007, Snowtide Informatics Systems, Inc. |
| 5 * All rights reserved. | 5 * All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without modificati
on, | 7 * Redistribution and use in source and binary forms, with or without modificati
on, |
| 8 * are permitted provided that the following conditions are met: | 8 * are permitted provided that the following conditions are met: |
| 9 * | 9 * |
| 10 * * Redistributions of source code must retain the above copyright notice, t
his | 10 * * Redistributions of source code must retain the above copyright notice, t
his |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 var la = this.a.length; | 400 var la = this.a.length; |
| 401 var lb = this.b.length; | 401 var lb = this.b.length; |
| 402 return _calculate_ratio(Math.min(la, lb), la + lb); | 402 return _calculate_ratio(Math.min(la, lb), la + lb); |
| 403 } | 403 } |
| 404 | 404 |
| 405 this.isjunk = isjunk ? isjunk : difflib.defaultJunkFunction; | 405 this.isjunk = isjunk ? isjunk : difflib.defaultJunkFunction; |
| 406 this.a = this.b = null; | 406 this.a = this.b = null; |
| 407 this.set_seqs(a, b); | 407 this.set_seqs(a, b); |
| 408 } | 408 } |
| 409 } | 409 } |
| OLD | NEW |