Skip to content

Instantly share code, notes, and snippets.

@rastyagaev
Created September 1, 2013 11:08
Show Gist options
  • Save rastyagaev/6403782 to your computer and use it in GitHub Desktop.
Save rastyagaev/6403782 to your computer and use it in GitHub Desktop.
#coffeescript
window.reserve = (path) ->
target = window
target = target[item] or= {} for item in path.split '.'
target
module = reserve('lib.features')
class module.Feature extends Backbone.View
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment