Commit f223ceb3 authored by Alice Wyan's avatar Alice Wyan

$broadcast cross frame events instead of $emit’ing them

parent d2418ea3
......@@ -32,7 +32,7 @@ module.exports = class CrossFrame
parsed
emit: (args...) ->
$rootScope.$apply ->
$rootScope.$emit.call($rootScope, args...)
$rootScope.$broadcast.call($rootScope, args...)
on: (event, handler) ->
$rootScope.$on(event, (event, args...) -> handler.apply(this, args))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment