Sha256: 5ab9e883b5eaf4993b812acf3353b05690fddf14ed3ad9e7663607aa90c52d9d
Contents?: true
Size: 573 Bytes
Versions: 19
Compression:
Stored size: 573 Bytes
Contents
class ELA.Router extends Backbone.Router routes: '': 'index' '(app/)*path': 'load' initialize: -> ELA.store = new Persist.Store('ilr_app') ELA.app = new ELA.Models.App() ELA.view = new ELA.Views.App model: ELA.app el: $('#app') ELA.view.render() index: -> ELA.app.set(path: null) load: (path, params) -> if params? try params = JSON.parse(decodeURI(params)) catch alert(t('messages.invalidParameters')) params = null ELA.app.set path: path.split('/') params: params
Version data entries
19 entries across 19 versions & 1 rubygems