Last active
October 5, 2016 15:29
-
-
Save jamiebuilds/48afb443b8c8c6ee4f46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['backbone.marionette', 'backbone.radio', 'underscore'], factory); | |
} else if (typeof exports !== 'undefined') { | |
module.exports = factory(require('backbone.marionette'), require('backbone.radio'), require('underscore')); | |
} else { | |
factory(root.Backbone.Marionette, root.Backbone.Radio, root._); | |
} | |
}(this, function(Marionette, Radio, _) { | |
'use strict'; | |
Marionette.Application.prototype._initChannel = function () { | |
this.channelName = _.result(this, 'channelName') || 'global'; | |
this.channel = _.result(this, 'channel') || Radio.channel(this.channelName); | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@thejameskyle is there any downside to using
marionette
instead ofbackbone.marionette
in thedefine
(since I like to usemarionette
in my RequireJS config)?