lib/webconsole/lib/window.rb in webconsole-0.1.13 vs lib/webconsole/lib/window.rb in webconsole-0.1.14
- old
+ new
@@ -58,19 +58,11 @@
def close
WebConsole::run_applescript(CLOSEWINDOW_SCRIPT, [window_id])
end
SPLIT_ID_IN_WINDOW_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, "split_id_in_window.scpt")
- def split_id(pluginName = nil)
- arguments = [window_id]
-
- if pluginName
- arguments.push(pluginName)
- end
-
- result = WebConsole::run_applescript(SPLIT_ID_IN_WINDOW_SCRIPT, arguments)
- result.chomp!
- return result
+ def split_id
+ return WebConsole::split_id_in_window(window_id)
end
private
def run_script(script, arguments = [])