-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.old.min.js
62 lines (56 loc) · 1.51 KB
/
app.old.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
if (typeof Object.create !== "function") {
Object.create = function(e, t) {
if (typeof e !== "object" && typeof e !== "function") {
throw new TypeError("Object prototype may only be an Object: " + e);
} else if (e === null) {
throw new Error("This browser's implementation of Object.create is a shim and doesn't support 'null' as the first argument.");
}
if (typeof t != "undefined") {
throw new Error("This browser's implementation of Object.create is a shim and doesn't support a second argument.");
}
function n() {}
n.prototype = e;
return new n();
};
}
"use strict";
function _inheritsLoose(e, t) {
e.prototype = Object.create(t.prototype);
e.prototype.constructor = e;
e.__proto__ = t;
}
var Backbone = function() {
function e() {}
var t = e.prototype;
t.forge = function n() {
alert("forged");
};
return e;
}();
var define = function e(t, n) {
n(function() {
return Backbone;
});
};
define("backbone", function(e) {
return Backbone;
});
define("scrollable", function(e) {
var t = e("Backbone");
var n = function(e) {
_inheritsLoose(t, e);
function t() {
return e.apply(this, arguments) || this;
}
var n = t.prototype;
n.events = function o() {
var o = {};
this.forge();
return o;
};
return t;
}(t);
var o = new n();
o.events();
return n;
});