Sha256: 35b64c92da119955e8a1baf364b1f38859d2e471c8df840b859b5c9d2bcf9fac

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"tenon/tenon_dispatcher.js;FI"
pathname;TI"[/Users/seanroberts/Sites/tenon/app/assets/javascripts/tenon/tenon_dispatcher.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+b+SI"length;Ti|I"digest;TI"%523e0b058bde5be29b18cb2f64b78869;FI"source;TI"|(function() {
  var TenonDispatcher;

  TenonDispatcher = (function() {

    function TenonDispatcher() {
      this.routes = {};
    }

    TenonDispatcher.prototype.initialize = function() {
      var action, body, controller;
      body = $('body');
      controller = body.data('controller');
      action = body.data('action');
      this.dispatch('tenon', 'initialize');
      this.dispatch(controller, 'initialize');
      return this.dispatch(controller, action);
    };

    TenonDispatcher.prototype.route = function(amalgam, fn) {
      var action, controller, _base, _ref, _ref1;
      _ref = amalgam.split('#'), controller = _ref[0], action = _ref[1];
      if ((_ref1 = (_base = this.routes)[controller]) == null) {
        _base[controller] = {};
      }
      return this.routes[controller][action] = fn;
    };

    TenonDispatcher.prototype.dispatch = function(controller, action) {
      var _ref;
      return (_ref = this.routes[controller]) != null ? typeof _ref[action] === "function" ? _ref[action]() : void 0 : void 0;
    };

    return TenonDispatcher;

  })();

  Tenon.dispatcher = new TenonDispatcher;

}).call(this);
;TI"dependency_digest;TI"%367f7bea5b6d22167313d10a01f41e95;FI"required_paths;T[I"[/Users/seanroberts/Sites/tenon/app/assets/javascripts/tenon/tenon_dispatcher.js.coffee;FI"dependency_paths;T[{I"	path;TI"[/Users/seanroberts/Sites/tenon/app/assets/javascripts/tenon/tenon_dispatcher.js.coffee;FI"
mtime;TI"2014-03-20T11:21:06-04:00;TI"digest;TI"%0452b097263990b8c1b95f6acb6ec397;FI"
_version;TI"%a56df69ef97ba4d9f1a23bf9b0add58a;F

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tenon-1.0 spec/dummy/tmp/cache/assets/development/sprockets/17195592255e8e7157ef4ab6dfe7d530