documentcloud/underscore — Issue #399: _.extend acting weird
Author: boxxxie
Created: 2011-12-07 22:16:24+00:00
State: open

_.extend({},{menu:0,scan:0,ecr:0},0)

output ----------------------------------------->

Object
_dateElement: "day"
after: function (date){var c={};c[this._dateElement]=this;return((!date)?new Date():date.clone()).add(c);}
ago: function (date){var c={};c[this._dateElement]=this*-1;return((!date)?new Date():date.clone()).add(c);}
before: function (date){var c={};c[this._dateElement]=this*-1;return((!date)?new Date():date.clone()).add(c);}
day: function (){this._dateElement=n;return this;}
days: function (){this._dateElement=n;return this;}
ecr: 0
fromNow: function (date){var c={};c[this._dateElement]=this;return((!date)?new Date():date.clone()).add(c);}
hour: function (){this._dateElement=n;return this;}
hours: function (){this._dateElement=n;return this;}
menu: 0
millisecond: function (){this._dateElement=n;return this;}
milliseconds: function (){this._dateElement=n;return this;}
minute: function (){this._dateElement=n;return this;}
minutes: function (){this._dateElement=n;return this;}
month: function (){this._dateElement=n;return this;}
months: function (){this._dateElement=n;return this;}
scan: 0
second: function (){this._dateElement=n;return this;}
seconds: function (){this._dateElement=n;return this;}
week: function (){this._dateElement=n;return this;}
weeks: function (){this._dateElement=n;return this;}
year: function (){this._dateElement=n;return this;}
years: function (){this._dateElement=n;return this;}
__proto__: Object