editor: Communication fix removed since bb.radio is in marionette since 3.0
This commit is contained in:
@ -1,36 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var Marionette = require('backbone.marionette');
|
||||
var Radio = require('backbone.radio');
|
||||
var _ = require('underscore');
|
||||
|
||||
/**
|
||||
* This shim replaces the default Backbone.Marionette communication library
|
||||
* Backbone.Wreqr with Backbone.Radio ahead of time,
|
||||
* since this libraries will be switched in Marionette 3.x anyway
|
||||
*
|
||||
* Courtesy of https://gist.github.com/jmeas/7992474cdb1c5672d88b
|
||||
*/
|
||||
|
||||
(function communicationsFix(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(
|
||||
['backbone.marionette', 'backbone.radio', 'underscore'],
|
||||
function factoryCallback(BackboneMarionette, BackboneRadio, underscore) {
|
||||
return factory(BackboneMarionette, BackboneRadio, underscore);
|
||||
}
|
||||
);
|
||||
}
|
||||
else if (typeof exports !== 'undefined') {
|
||||
module.exports = factory(Marionette, Radio, _);
|
||||
}
|
||||
else {
|
||||
factory(root.Backbone.Marionette, root.Backbone.Radio, root._);
|
||||
}
|
||||
}(this, function factory(MarionetteLibrary, RadioLibrary, underscore) {
|
||||
var MarionetteApplication = MarionetteLibrary.Application;
|
||||
MarionetteApplication.prototype._initChannel = function initChannel() {
|
||||
this.channelName = underscore.result(this, 'channelName') || 'global';
|
||||
this.channel = underscore.result(this, 'channel') || RadioLibrary.channel(this.channelName);
|
||||
};
|
||||
}));
|
@ -227,7 +227,6 @@ var adminConfig = {
|
||||
'blob',
|
||||
'file-saver',
|
||||
'velocity-animate',
|
||||
'newsletter_editor/communicationsFix.js',
|
||||
'newsletter_editor/App',
|
||||
'newsletter_editor/components/config.js',
|
||||
'newsletter_editor/components/styles.js',
|
||||
@ -331,7 +330,6 @@ var testConfig = {
|
||||
'i18n',
|
||||
'help-tooltip',
|
||||
|
||||
'newsletter_editor/communicationsFix.js',
|
||||
'newsletter_editor/App',
|
||||
'newsletter_editor/components/config.js',
|
||||
'newsletter_editor/components/styles.js',
|
||||
|
Reference in New Issue
Block a user