Skip to content

Commit

Permalink
To adapt the adjust of the webview impl in the jsb (cocos#3697)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinCollins authored and pandamicro committed Jan 9, 2019
1 parent 1b03af9 commit 05ddefc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cocos2d/webview/CCWebView.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,17 @@ let WebView = cc.Class({

statics: {
EventType: EventType,
// Impl will be overrided in the different platform.
Impl: WebViewImpl
},


ctor () {
this._impl = new WebViewImpl();
this._impl = new WebView.Impl();
},

onRestore () {
if (!this._impl) {
this._impl = new WebViewImpl();
this._impl = new WebView.Impl();
}
},

Expand Down
1 change: 1 addition & 0 deletions cocos2d/webview/webview-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ let WebViewImpl = cc.Class({

setOnJSCallback (callback) {},
setJavascriptInterfaceScheme (scheme) {},
// private method
loadData (data, MIMEType, encoding, baseURL) {},
loadHTMLString (string, baseURL) {},

Expand Down

0 comments on commit 05ddefc

Please sign in to comment.