aboutsummaryrefslogtreecommitdiff
path: root/template/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'template/javascript')
-rw-r--r--template/javascript/pattern.tpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/template/javascript/pattern.tpl b/template/javascript/pattern.tpl
index 0102f15..1ef204a 100644
--- a/template/javascript/pattern.tpl
+++ b/template/javascript/pattern.tpl
@@ -4,3 +4,8 @@
^\s*\zs\(\S.*\)\.throw$
throw {{$1}};
+\(\S\+\)\.notif$
+ if ({{$1}} != null) {
+ {{_cursor_}}
+ }
+