docs: function (options) {
              if (!isObject(options)) {
                  return this.setOptions('restrict', options);
              }
  
              var actions = ['drag', 'resize', 'gesture'],
                  ret;
  
              for (var i = 0; i < actions.length; i++) {
                  var action = actions[i];
  
                  if (action in options) {
                      var perAction = extend({
                              actions: [action],
                              restriction: options[action]
                          }, options);
  
                      ret = this.setOptions('restrict', perAction);
                  }
              }
  
              return ret;
          }