zurb/foundation-rails — pull request #84 by choladay (2014-05-13 21:48:30+00:00)
Title: Fix Closure compiler error on objPos' trailing comma - 2nd attempt

Reopened https://github.com/zurb/foundation-rails/pull/83

@mehlah suggested I file the bug against https://github.com/zurb/foundation

*However* the problem does not exist in that repository, there is an inconsistency between `zurb/foundation-rails` and `zurb/foundation`. Note file https://github.com/zurb/foundation/blob/master/js/foundation/foundation.tooltip.js line 171 does *not* contain the offending comma.

-----

Repost of original pull:

Forum post: http://foundation.zurb.com/forum/posts/13006

This trailing comma is causing compile errors when using Closure:

```
closure_compiler: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all.
```

This comma is not present in the 5.2.2 version of Foundation https://github.com/zurb/foundation/blob/master/js/foundation/foundation.tooltip.js

Removing it allows Closure to successfully compile this file.