diff options
author | Felipe Erias Morandeira <femorandeira@igalia.com> | 2013-06-28 10:58:08 +0100 |
---|---|---|
committer | Felipe Erias Morandeira <femorandeira@igalia.com> | 2013-06-28 10:58:08 +0100 |
commit | 07193f456ac02a53845e44a737e02be363f964b6 (patch) | |
tree | b5b39b50f27ab148bd1125ea3934585ec24e21ef | |
parent | fe844f61937d3af03577488362dc116abade2c8d (diff) |
Moved this.actions to this._html_actions for clarity
[endlessm/eos-sdk#113]
-rw-r--r-- | test/smoke-tests/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/smoke-tests/webview.js b/test/smoke-tests/webview.js index 63a2c23..a441691 100644 --- a/test/smoke-tests/webview.js +++ b/test/smoke-tests/webview.js @@ -52,8 +52,8 @@ const TestApplication = new Lang.Class({ }); } - if(this.actions[function_name]) - Lang.bind(this, this.actions[function_name])(parameters); + if(this._html_actions[function_name]) + Lang.bind(this, this._html_actions[function_name])(parameters); else print('Unknown function '+function_name); @@ -89,9 +89,9 @@ const TestApplication = new Lang.Class({ } }, - /* *** APP-SPECIFIC FUNCTIONS *** */ + /* *** ACTIONS AVAILABLE FROM HTML *** */ - actions: { + _html_actions: { /* dict['name'] is the name of the page to move to */ 'moveToPage': function(dict) { print('move to page '+dict['name']); |