Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7910775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:59:48+00:00 2026-06-03T12:59:48+00:00

@element.stop().animate scrollLeft: @left scrollTop: @top , @options.duration, linear it compiles in online interpreter (coffeescript.org)

  • 0
@element.stop().animate
  scrollLeft: @left
  scrollTop:  @top
, @options.duration, "linear"

it compiles in online interpreter (coffeescript.org) to:

this.element.animate({
  scrollLeft: this.left,
  scrollTop: this.top
}, this.options.duration, "linear");

But middleman (it uses sprockets) throws an exception about “.” in “@options.duration”:

Uncaught Error: ExecJS::ProgramError: Error: Parse error on line 131:
Unexpected '.' (in */source/javascripts/views/scene.js.coffee) application.js:1
(anonymous function)

I am new to coffee script. Does it look like bug in sprockets?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T12:59:49+00:00Added an answer on June 3, 2026 at 12:59 pm

    That error could happen if you’re accidentally mixing tabs and spaces in your CoffeeScript. You probably won’t be able to see the problem with your eyes and the copy/paste you’re doing to check your work at coffeescript.org could convert the tab to spaces behind your back.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using .animate() while changing top / left , the click event does not
I have the following snippet to scroll my form to the first error: $('html,body').stop().delay(500).animate({scrollTop:
$(document).ready(function(){ function anima() { $(.box).stop().animate({bottom:'0px'},{queue:false,duration:160}); } $('ul#aa img').hover(function(){ $(this).parent().append(<div class='box'>Artist<br/>More</div>, anima()); }, function() {
I'm trying to animate a logo when you hover over the anchor element. When
Using jQuery 1.7.2 $(function(){ $('#parentElem').mouseenter(function(){ $('.myElem').animate({opacity:1}, 'fast'); }).mouseleave(function(){ $('.myElem').stop().animate{opacity:0}, 'slow'); }); }); In this
I have the following jQuery code-- $('div#mid_number_of_mail').mouseover(function () { setTimeout(function () { $('div.element_popup' ,this).stop().animate({
I'm trying to get an element to animate a rotation hover effect using jquery,
Is it necessary to stop an animation, before animating the element again? For example,
Example: element = ['Flaming', 'Cold'] fire_properties = ['of Fire', 'of Flame'] cold_properties = ['of
I have a block element (DIV) who stretches across an entire page. It contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.