(keyMode)
| 1303 | } |
| 1304 | |
| 1305 | function keyMode (keyMode) { |
| 1306 | if (!this._keyModes.has(keyMode)) { |
| 1307 | throw Error('Illegal keyMode: ' + keyMode); |
| 1308 | } |
| 1309 | if (keyMode != this._options.keyMode && this._data != null) { |
| 1310 | throw Error('Too late to change keyMode'); |
| 1311 | } |
| 1312 | this._options.keyMode = keyMode; |
| 1313 | return this; |
| 1314 | } |
| 1315 | |
| 1316 | function fade (enable) { |
| 1317 | this._options.fade = enable; |