Skip to content

Instantly share code, notes, and snippets.

@jaceju
Last active August 29, 2015 14:07
Show Gist options
  • Save jaceju/bd83d5d36ea732f15a12 to your computer and use it in GitHub Desktop.
Save jaceju/bd83d5d36ea732f15a12 to your computer and use it in GitHub Desktop.
/*global define */
'use strict';
(function(root, factory) {
// Universal module definition
if (typeof define === 'function' && define.amd) {
define([
'react',
'backbone',
'underscore'
], factory);
} else if (typeof module !== 'undefined' && module.exports) {
module.exports = factory(
require('react'),
require('backbone'),
require('underscore')
);
} else {
root.WebApp = factory(
root.Backbone,
root.React,
root._
);
}
}(this, function(Backbone, React, _) {
var WebApp = {};
return WebApp;
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment