Skip to content

Instantly share code, notes, and snippets.

Jenne van der Meer jennevdmeer

Block or report user

Report or block jennevdmeer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jennevdmeer / Component.vue
Last active Jul 5, 2019
Vue self removing initializer with external props
View Component.vue
{{ foo }}
{{ helloWorld }}
export default {
name: 'entry-component',
jennevdmeer / Updater.js
Created May 16, 2019
Vue plugin for global updater interval (gameloop).
View Updater.js
export default class Updater {
constructor(options) {
this.options = Object.assign({}, Updater.DefaultOptions, options || {});
this.callbacks = [];
this.start =;
this.last =;
this.interval = setInterval(() => this.update(), this.options.updateRate);
View 1

promise is the promise object, this property is being watched so will reset on change. And default to default if none is provided.

reset on 0 wont reset the button's finaly state, however when a number is entered it will reset to 'default' after said timeout is finished.

disable can be used to disabled the button (button also disables itself while loading, so need to do

You can’t perform that action at this time.