Permalink
Browse files

fix for GRAILS-4826

  • Loading branch information...
1 parent 6b70099 commit 4123e5d71dbe6a82e589cf448d829108c5ddb25f @graemerocher graemerocher committed Jul 20, 2009
View
10 grails/src/java/org/codehaus/groovy/grails/plugins/web/taglib/JavascriptTagLib.groovy
@@ -395,13 +395,13 @@ class PrototypeProvider implements JavascriptProvider {
}
out << "'"
- //def pms = attrs.remove('params')
def url
- def jsParams = attrs.params?.findAll { it.value instanceof JavascriptValue }
-
- jsParams?.each { attrs.params?.remove(it.key) }
-
+ def jsParams = [:]
+ if (jsParams instanceof Map) {
+ jsParams = attrs.params?.findAll { it.value instanceof JavascriptValue }
+ jsParams?.each { attrs.params?.remove(it.key) }
+ }
if(attrs.url) {
url = taglib.createLink(attrs.url)

0 comments on commit 4123e5d

Please sign in to comment.