mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 23:42:53 +08:00
Fix for a merge problem
This commit is contained in:
parent
ae800455b1
commit
b01668d262
@ -208,7 +208,7 @@ PhoneGap._document_addEventListener = document.addEventListener;
|
|||||||
|
|
||||||
document.addEventListener = function(evt, handler, capture) {
|
document.addEventListener = function(evt, handler, capture) {
|
||||||
if (evt.toLowerCase() == 'deviceready') {
|
if (evt.toLowerCase() == 'deviceready') {
|
||||||
PhoneGap.onDeviceReady.sob(handler);
|
PhoneGap.onDeviceReady.subscribeOnce(handler);
|
||||||
} else {
|
} else {
|
||||||
PhoneGap._document_addEventListener.call(document, evt, handler);
|
PhoneGap._document_addEventListener.call(document, evt, handler);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user