UI Plugin

"Too much recursion" in grailsui.js when prototype.js added to page with DataTable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Duplicate
  • Affects Version/s: 1.1
  • Fix Version/s: 1.2
  • Component/s: None
  • Labels:
    None

Description

When

<g:javascript library="prototype" />

is added to a page with a gui:dataTable, the js error is :

too much recursion
} else if (isArray(input)) {

This happens in GRAILSUI.util.replaceDateStringsWithRealDates at grailsui.js:78.

I think this is happening because Prototype alters the Object.prototype so that my isArray function doesn't work properly. But Prototype does have its own Object.isArray() function that I could use if available.

Issue Links

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: