Skip to content

Commit

Permalink
fix(image-property): remove event dispatch for property for now
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Nov 8, 2022
1 parent 1b861fb commit 886532b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/property/src/Charcoal/Property/ImageProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,12 @@ protected function resolveExtensionFromMimeType($type)
*/
public function save($val)
{
$this->getEventDispatcher()->dispatch(new PropertyEvent(PropertyEvent::EVENT_PRE_SAVE, $this, ['val' => $val]));

$val = parent::save($val);

if ($this->canApplyEffects('save')) {
$val = $this->processEffects($val);
}

$this->getEventDispatcher()->dispatch(new PropertyEvent(PropertyEvent::EVENT_SAVE, $this, ['val' => $val]));

return $val;
}

Expand Down

0 comments on commit 886532b

Please sign in to comment.