noConflict in Coffeescript?

CoffeeScript
I have the following JavaScript for a datepicker in my rails application but I want to use coffeescript and I am wondering how to implement no conflic...
3 years ago

Rails: where to enable Access-Control-Allow-Origin

CoffeeScript
I'm trying to load a link in my coffeescript file like so: $.ajax hobby.link, type: 'GET' dataType: 'html' error: (jqXHR, textStatus, errorThro...
3 years ago

How to check if a marker is in a bounding box with Leaflet

CoffeeScript
In my example I'm trying to check if the marker is within the bounding box. If it is, the popup text gets set to true. I keep ending up with "L.latl...
2 years ago

How to get bourbon-neat to work with Roots

CoffeeScript
So I'm experimenting with Roots Static Site generator and I'm having a hell of a time getting it to import Bourbon-neat through the app.coffee file. ...
3 years ago

Creating an app on Heroku with Django and NPM

CoffeeScript
I'm writing a Django app that includes some CoffeeScript in it. To allow for this I'm using django-compressor which compiles the CoffeeScript to JS b...
3 years ago

How to make _.each handle both 'array' and 'array of array' in $.when done handler

CoffeeScript
I have to perform a number of json calls and apply callback to the result. The number of call is unknown until runtime. Therefore I use $.when.apply t...
3 years ago

With turbolinks, jQuery stops working until a hard refresh

CoffeeScript
I implemented a dynamic select menu thanks to the related RailsCast video. It worked well but now I have to refresh my webpage so that my JQuery code,...
2 years ago

How can I avoid calling a function within a function?

CoffeeScript
#branchID pool branch0 = "This is a wall of text. This is another wall of text! This is a third wall of text. This is a fourth wall of text. This is a...
3 years ago

How to avoid an implicit "return" in coffeescript in conditional expressions?

CoffeeScript
I am implementing a function that has deferred value to return and within the function I have many nested conditional expressions: e.g.: deferred = ...
3 years ago

comma in coffee script / framerjs

CoffeeScript
When do we use a comma after function declaration in coffee script? For eg, in the code below why is there a comma after Events.DragStart? layerA.on ...
3 years ago

Iterate over ES6 Set/Map in Coffeescript (with `of` operator)

CoffeeScript
How can one iterate over an ES6 Map or Set in Coffeescript? In Javascript one would use e.g. s = new Set() s.add({a: 1}) for (x of s) { console.lo...
2 years ago

Setting data attribute on stripe button

CoffeeScript
I can't figure this out. I checked other questions regarding setting data attributes, seems to be a tricky enough thing. The stripe button amount is...
2 years ago

Bind click event to open a link in new tab

CoffeeScript
I'm trying to make all of the links in a modal open in a new tab, and due to the constraints of using angular, manipulating the DOM isn't as easy as I...
3 years ago

Unexpected behavior with masonry effect on rails 4

CoffeeScript
I got inspiered by Makenzie Child video and github repo to create a masonry effect on my rails app. I have a little problem, when I visit the page, t...
3 years ago

Declare global variable in coffescript

CoffeeScript
I use Gem Coocon for nested forms. I need to hide the #end_date_job_portfolio field if .checkBoxCurrentJob is checked. The problem is that jQuery can...
2 years ago

Ember computed property depending on service property not updating

CoffeeScript
In my Ember 2.8 application, I'm establishing a Websocket connection in a service. The connection URL changes when a user is logged in (it then includ...
2 years ago

Message username undefined for ActionCable chat app

CoffeeScript
I am following the Learn Enough Action Cable tutorial. I have gotten to the end of section 6, adding @mentions to create notifications to the mention...
2 years ago

Rails: How can I dynamically load from db into a bootstrap accordion only if it opens

CoffeeScript
I am using the Awesome Nested Set gem to create a hierarchy now I want to display this hierarchy. I have an index page with a typical controller act...
2 years ago

Break from a coffeescript javascript if statement

CoffeeScript
I'm using the vimeo api which reports the progress of the video playing back every second from 0.0 to 1 when the video is complete. I want to do somet...
2 years ago

can phantomjs work with node.js?

CoffeeScript
I would like to use phantomjs in my node.js script. there is a phantomjs-node library.. but unfortunately the author used this weird coffee script cod...
2 years ago