Browse Source

Fix DataSet Moment conversion. Calling object.clone() will fail if

object is already a moment instance. Calling moment(object) will clone
it per tehe moment docs http://momentjs.com/docs/#/parsing/moment-clone/
css_transitions
Eric Gillingham 11 years ago
parent
commit
68259d8d67
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/util.js

+ 1
- 1
src/util.js View File

@ -171,7 +171,7 @@ util.convert = function convert(object, type) {
return moment(object.valueOf()); return moment(object.valueOf());
} }
else if (moment.isMoment(object)) { else if (moment.isMoment(object)) {
return moment.clone();
return moment(moment);
} }
if (util.isString(object)) { if (util.isString(object)) {
match = ASPDateRegex.exec(object); match = ASPDateRegex.exec(object);

Loading…
Cancel
Save