code: function extend(obj, dft) {
          if (obj == null) {
              obj = {};
          }
          for (var k in dft) {
              var v = dft[k];
              if (obj[k] != null) {
                  continue;
              }
              obj[k] = v;
          }
          return obj;
      }
docs: extend obj with dft