mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-07-31 12:20:08 +08:00
misc comments
This commit is contained in:
@@ -709,6 +709,7 @@ function Calendar(element, instanceOptions) {
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
if (options.droppable) {
|
||||
// TODO: unbind on destroy
|
||||
$(document)
|
||||
.bind('dragstart', function(ev, ui) {
|
||||
var _e = ev.target;
|
||||
|
||||
@@ -28,6 +28,7 @@ function SelectionManager() {
|
||||
|
||||
// unselectAuto
|
||||
if (opt('selectable') && opt('unselectAuto')) {
|
||||
// TODO: unbind on destroy
|
||||
$(document).mousedown(function(ev) {
|
||||
var ignore = opt('unselectCancel');
|
||||
if (ignore) {
|
||||
|
||||
@@ -52,6 +52,7 @@ function makeMoment(args, parseUTC, parseZone) {
|
||||
isAmbigZone = true;
|
||||
}
|
||||
|
||||
// instantiate a vanilla moment
|
||||
if (parseUTC || parseZone || isAmbigTime) {
|
||||
mom = moment.utc.apply(moment, args);
|
||||
}
|
||||
@@ -96,6 +97,7 @@ function FCMoment(config) {
|
||||
// chain the prototype to Moment's
|
||||
FCMoment.prototype = createObject(moment.fn);
|
||||
|
||||
// we need this because Moment's implementation will not copy of the ambig flags
|
||||
FCMoment.prototype.clone = function() {
|
||||
return makeMoment([ this ]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user