protected function emitOnChange($method = false)
    {
        if (!$this->onChangeAlreadyEmittedBy) {
            $this->emit('change', [$this]);
            $this->onChangeAlreadyEmittedBy = $method;
        }
    }
protected function emitOnChange($method = false)
    {
        if (!$this->onChangeAlreadyEmittedBy) {
            $this->emit('change', [$this]);
            $this->onChangeAlreadyEmittedBy = $method;
        }
    }
protected function emitOnChange ( $ method = false ) { if ( ! $ this -> onChangeAlreadyEmittedBy ) { $ this -> emit ( 'change' , [ $ this ] ) ; $ this -> onChangeAlreadyEmittedBy = $ method ; } }
Emits onChange if not emitted before.

@param string|bool $method if false, does not require calling endEmitOnChange
Emits onChange if not emitted before .