Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
rpAmountFilter: Don't change passed options object.
Browse files Browse the repository at this point in the history
  • Loading branch information
vhpoet committed Jan 28, 2014
1 parent 18ae1b9 commit 8713be7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/filters/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ var iso4217 = require('../data/iso4217');
* If the parameter is a number, the number is treated the relative
*/
module.filter('rpamount', function () {
return function (input, opts) {
return function (input, options) {
opts = jQuery.extend(true, {}, options);

if ("number" === typeof opts) {
opts = {
rel_min_precision: opts
Expand Down

0 comments on commit 8713be7

Please sign in to comment.