MCPcopy
hub / github.com/glidejs/glide / update

Method update

src/index.js:69–79  ·  view source on GitHub ↗

* Updates glide with specified settings. * * @param {Object} settings * @return {Glide}

(settings = {})

Source from the content-addressed store, hash-verified

67 * @return {Glide}
68 */
69 update (settings = {}) {
70 this.settings = mergeOptions(this.settings, settings)
71
72 if (settings.hasOwnProperty('startAt')) {
73 this.index = settings.startAt
74 }
75
76 this._e.emit('update')
77
78 return this
79 }
80
81 /**
82 * Change slide with specified pattern. A pattern must be in the special format:

Callers 2

events.test.jsFile · 0.80
update.test.jsFile · 0.80

Calls 2

mergeOptionsFunction · 0.90
emitMethod · 0.80

Tested by

no test coverage detected