meleyal / backbone-on-rails

A simple gem for using Backbone.js with Rails.
MIT License
809 stars 125 forks source link

Rename App.init function to initialize for consistency with Backbone #17

Closed meleyal closed 12 years ago

meleyal commented 12 years ago
window.App =
  Models: {}
  Collections: {}
  Views: {}
  Routers: {}
  initialize: -> alert 'Hello from Backbone!'

$(document).ready ->
  App.initialize()
meleyal commented 12 years ago

I brought this up with thoughtbot, see https://github.com/thoughtbot/backbone-js-on-rails/issues/59 (summary: it was done to avoid confusion between the two, a better way would be to have an app class / constructor)

So I will leave this how it is for now, and update here if thoughtbot rethink it.