mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-09-11 12:10:23 +08:00
improvements and bugfixes to FullCalendar's MomentJS extensions
notably we have no side effects on the Moment prototype anymore. we subclass
This commit is contained in:
+4
-1
@@ -3,12 +3,15 @@ fc.applyAll = applyAll;
|
||||
|
||||
|
||||
|
||||
function createObject(proto) { // like Object.create
|
||||
// Create an object that has the given prototype.
|
||||
// Just like Object.create
|
||||
function createObject(proto) {
|
||||
var f = function() {};
|
||||
f.prototype = proto;
|
||||
return new f();
|
||||
}
|
||||
|
||||
// copy specifically-owned (non-protoype) properties of `b` onto `a`
|
||||
function extend(a, b) {
|
||||
for (var i in b) {
|
||||
if (b.hasOwnProperty(i)) {
|
||||
|
||||
Reference in New Issue
Block a user