Files
fuel-ui/static/js/dispatcher.js
Vitaly Kramskikh b89d56eb45 Dispatcher
Implementation of Dispatcher pattern which can be used
to reduce coupling

Related to blueprint react-router
Related to blueprint backbone-to-react

Change-Id: Ieecfdde33387e0577b366f95598a1f63169b2e9c
2015-01-23 14:13:11 +03:00

24 lines
778 B
JavaScript

/*
* Copyright 2015 Mirantis, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
**/
define(['underscore', 'backbone'], function(_, Backbone) {
'use strict';
var dispatcher = _.clone(Backbone.Events);
_.bindAll(dispatcher);
return dispatcher;
});