From 64cac156f0611a3a6318db3090aa9a33e9b4c321 Mon Sep 17 00:00:00 2001 From: Jeff Lembeck Date: Tue, 12 Apr 2016 13:27:27 -0700 Subject: [PATCH] fix(events): Update docs Update docs to add `before` syntax --- src/pivotal-ui/components/events/events.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pivotal-ui/components/events/events.scss b/src/pivotal-ui/components/events/events.scss index a4e001a38..452027c80 100644 --- a/src/pivotal-ui/components/events/events.scss +++ b/src/pivotal-ui/components/events/events.scss @@ -19,6 +19,7 @@ Component 💣 has a method `🔥`. In the code, you might see: 💣.prototype.🔥 = function(blaze){ + $(this).trigger("💣:🔥:before"); //do things // this represent the element the component is referring to @@ -27,8 +28,8 @@ Component 💣 has a method `🔥`. In the code, you might see: In another component 🚰, we have a method 🌊. We know that when the 💣 -component has the 🔥 method called, the 🚰 component needs to call the 🌊 -method. +component has the 🔥 method called and that method is completed, the 🚰 +component needs to call the 🌊 method. $(document).on("💣:🔥", function(){