Strict mode is supported by 98% of the browsers, including Internet Explorer 10, and it helps developers avoid common JavaScript pitfalls.
11 lines
250 B
CoffeeScript
11 lines
250 B
CoffeeScript
"use strict"
|
|
|
|
App.Questions =
|
|
|
|
nestedQuestions: ->
|
|
$('.js-questions').on 'cocoon:after-insert', (e, new_question) ->
|
|
App.Answers.initializeAnswers($(new_question).find('.js-answers'))
|
|
|
|
initialize: ->
|
|
App.Questions.nestedQuestions()
|