Permalink
Browse files

left overs from merge

  • Loading branch information...
constantology committed Nov 20, 2012
1 parent 90713bf commit bebb1eb52a1cf3f5853c0619e4ffa8d213a9b291
Showing with 1 addition and 18 deletions.
  1. +1 −10 d8.js
  2. +0 −8 src/diff.js
View
11 d8.js
@@ -48,8 +48,7 @@
function adjust( o, v ) {
var date = this, day, fn, weekday; // noinspection FallthroughInSwitchStatementJS
switch ( util.ntype( o ) ) {
- case 'number' : o = arguments; // allow fall-through
- case 'array' : o = _adjust_toobj( o ); // allow fall-through
+ case 'number' : o = _adjust_toobj( arguments ); // allow fall-through
case 'object' : Object.reduce( o, _adjust, date ); break;
case 'string' :
fn = adjust_by[o.toLowerCase()];
@@ -256,14 +255,6 @@
}
/*~ src/diff.js ~*/
-/*
- todo: diff_eval should pass value to either the previous or next item if the current is an exclusion and is rounded up or down, respectively
- todo: date_1.diff( date_2, '-weeks >hours' )
- todo: date_1.diff( date_2, 'years months days time' ) === date_1.diff( date_2, '-weeks' )
- todo: date_1.diff( date_2, '-time' ) === date_1.diff( date_2, '>hours' );
- todo: date_1.diff( date_2, 'time' );
-* */
-
function diff( now, props ) { //noinspection FallthroughInSwitchStatementJS
switch ( util.ntype( now ) ) {
case 'string' :
View
@@ -1,11 +1,3 @@
-/*
- todo: diff_eval should pass value to either the previous or next item if the current is an exclusion and is rounded up or down, respectively
- todo: date_1.diff( date_2, '-weeks >hours' )
- todo: date_1.diff( date_2, 'years months days time' ) === date_1.diff( date_2, '-weeks' )
- todo: date_1.diff( date_2, '-time' ) === date_1.diff( date_2, '>hours' );
- todo: date_1.diff( date_2, 'time' );
-* */
-
function diff( now, props ) { //noinspection FallthroughInSwitchStatementJS
switch ( util.ntype( now ) ) {
case 'string' :

0 comments on commit bebb1eb

Please sign in to comment.