-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4b7b85
commit 6981360
Showing
4 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Backbone.js 1.5.0 | ||
|
||
// (c) 2010-2022 Jeremy Ashkenas and DocumentCloud | ||
// Backbone may be freely distributed under the MIT license. | ||
// For all details and documentation: | ||
// http://backbonejs.org | ||
|
||
(function(factory) { | ||
|
||
// Set up Backbone appropriately for the environment. Start with AMD. | ||
if (typeof define === 'function' && define.amd) { | ||
define(['underscore', 'jquery', 'exports'], function($, exports) { | ||
// Export global even in AMD case in case this script is loaded with | ||
// others that may still expect a global Backbone. | ||
root.Backbone = factory(root, exports, $); | ||
}); | ||
|
||
// Next for Node.js or CommonJS. jQuery may not be needed as a module. | ||
} else if (typeof exports !== 'undefined') { | ||
require('underscore'), $; | ||
try { $ = require('jquery'); } catch (e) {} | ||
factory(root, exports, _, $); | ||
} | ||
|
||
})(function(root, Backbone, _, $) { | ||
|
||
return Backbone; | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { dew as _underscoreDew } from "underscore"; | ||
import { dew as _jqueryDew } from "jquery"; | ||
var exports = {}, | ||
_dewExec = false; | ||
var _global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global; | ||
export function dew() { | ||
if (_dewExec) return exports; | ||
_dewExec = true; | ||
// Backbone.js 1.5.0 | ||
|
||
// (c) 2010-2022 Jeremy Ashkenas and DocumentCloud | ||
// Backbone may be freely distributed under the MIT license. | ||
// For all details and documentation: | ||
// http://backbonejs.org | ||
|
||
(function (factory) { | ||
// Set up Backbone appropriately for the environment. Start with AMD. | ||
|
||
if (true) { | ||
_underscoreDew(), $; | ||
try { | ||
_global.$ = _jqueryDew(); | ||
} catch (e) {} | ||
factory(root, exports, _, $); | ||
} | ||
})(function (root, Backbone, _, $) { | ||
return Backbone; | ||
}); | ||
return exports; | ||
} |
This file contains 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
This file contains 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