mirror of
https://github.com/mistergibson/gxg-web-client.git
synced 2026-08-15 03:26:00 -07:00
Added Call_Event
This commit is contained in:
parent
81daf6f387
commit
20dad4ac76
2 changed files with 15 additions and 1 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
*.js
|
||||||
|
opal-stdlib
|
||||||
|
|
@ -642,7 +642,19 @@ module GxG
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
#
|
# Service Call Event Support:
|
||||||
|
def call_event(service=:core, op_frame={:noop => nil}, error_handler=nil, &the_handler)
|
||||||
|
if self.open?
|
||||||
|
if op_frame.is_a?(::Hash) && the_handler
|
||||||
|
self.pull_data({:call_event => {:service => service.to_s, :op_frame => op_frame}},error_handler) do |data|
|
||||||
|
the_handler.call(data)
|
||||||
|
end
|
||||||
|
true
|
||||||
|
else
|
||||||
|
false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
# Libarary Loading Support:
|
# Libarary Loading Support:
|
||||||
def library_pull(details={}, error_handler=nil, &the_handler)
|
def library_pull(details={}, error_handler=nil, &the_handler)
|
||||||
if self.open?
|
if self.open?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue