jejacks0n/mercury — Issue #69: RangeError: Maximum call stack size exceeded
Author: ryanb
Created: 2011-11-06 23:26:39+00:00
State: open

I am receiving this error when using the `load_mercury.js` file in Safari 5.1 with mercury-rails 0.2.3 and git head. Version 0.2.0 seems to work without this error.

Mercury.PageEditor failed to load: RangeError: Maximum call stack size exceeded.

Here are the steps to reproduce:

1. Create a new Rails 3.1.1 application.

2. Add the `mercury-rails` gem to Gemfile

3. Run the following commands:

```
bundle
rails generate mercury:install
rake mercury_engine:install:migrations
rake db:migrate
```

4. Add `load_mercury.js` to the layout file.

```rhtml
<%= javascript_include_tag "application", "mercury_loader" %>
```

5. Add a mercury region.

```html

...

```

Visiting the page with that div shows that error. Is there something I'm missing?