Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Use jQuery.map to get error messages to work in IE #2

Merged
merged 1 commit into from

2 participants

@jhardy
Collaborator

No description provided.

@jkrall jkrall merged commit 519c40b into master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 5, 2012
  1. @jhardy
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  0.1/samurai/payment_error_handler.js.coffee
View
2  0.1/samurai/payment_error_handler.js.coffee
@@ -136,7 +136,7 @@ $ = Samurai.jQuery
test(a.key || '') - test(b.key || '')
# Make sure the errors are unique'd, by message.context
- messages = $.grep messages, (v,k) -> $.inArray(v.context, messages.map (m) -> m.context) == k
+ messages = $.grep messages, (v,k) -> $.inArray(v.context, $.map messages, (m) -> m.context) == k
for message in messages
if message.class is 'error' or message.subclass is 'error'
Something went wrong with that request. Please try again.