lib/client/index.js
function(newOption) {
      var k, v, y, _results;
      if (typeof newOption !== 'object') {
        throw new Error('ss.client.set() takes an object e.g. {liveReload: false}');
      }
      _results = [];
      for (k in newOption) {
        if (newOption.hasOwnProperty(k)) {
          v = newOption[k];
          if (v instanceof Object) {
            //jshint -W083
            _results.push((function() {
              var _results1, x;
              _results1 = [];
              for (x in v) {
                if (v.hasOwnProperty(x)) {
                  y = v[x];

                  if (!options[k]) {
                    options[k]= {};
                  }

                  _results1.push(options[k][x] = y);
                }
              }
              return _results1;
            })());
          } else {
            _results.push(options[k] = v);
          }
        }
      }
      return _results;
    }
function(newOption) {
      var k, v, y, _results;
      if (typeof newOption !== 'object') {
        throw new Error('ss.client.set() takes an object e.g. {liveReload: false}');
      }
      _results = [];
      for (k in newOption) {
        if (newOption.hasOwnProperty(k)) {
          v = newOption[k];
          if (v instanceof Object) {
            //jshint -W083
            _results.push((function() {
              var _results1, x;
              _results1 = [];
              for (x in v) {
                if (v.hasOwnProperty(x)) {
                  y = v[x];

                  if (!options[k]) {
                    options[k]= {};
                  }

                  _results1.push(options[k][x] = y);
                }
              }
              return _results1;
            })());
          } else {
            _results.push(options[k] = v);
          }
        }
      }
      return _results;
    }
function ( newOption ) { var k , v , y , _results ; if ( typeof newOption !== 'object' ) { throw new Error ( 'ss.client.set() takes an object e.g. {liveReload: false}' ) ; } _results = [ ] ; for ( k in newOption ) { if ( newOption . hasOwnProperty ( k ) ) { v = newOption [ k ] ; if ( v instanceof Object ) { //jshint -W083 _results . push ( ( function ( ) { var _results1 , x ; _results1 = [ ] ; for ( x in v ) { if ( v . hasOwnProperty ( x ) ) { y = v [ x ] ; if ( ! options [ k ] ) { options [ k ] = { } ; } _results1 . push ( options [ k ] [ x ] = y ) ; } } return _results1 ; } ) ( ) ) ; } else { _results . push ( options [ k ] = v ) ; } } } return _results ; }
Merge optional options
Merge optional options