diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee index 6adaffb51..91f2d77f3 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -26,338 +26,18 @@ class App.Controller extends Spine.Controller return true if role.name is name return false -# # extend delegateEvents to unbind and undelegate -# delegateEvents: -> -# -# # here unbind and undelegate while @el -# @el.unbind() -# @el.undelegate() -# -# for key, method of @events -# unless typeof(method) is 'function' -# method = @proxy(@[method]) -# -# match = key.match(@eventSplitter) -# eventName = match[1] -# selector = match[2] -# -# if selector is '' -# @el.bind(eventName, method) -# else -# @el.delegate(selector, eventName, method) - - formGen: (data) -> - form = $('