[jbosstools-issues] [JBoss JIRA] (JBIDE-18767) Add support for Cordova 4.1.2
Ilya Buziuk (JIRA)
issues at jboss.org
Fri Dec 5 10:11:39 EST 2014
[ https://issues.jboss.org/browse/JBIDE-18767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025555#comment-13025555 ]
Ilya Buziuk commented on JBIDE-18767:
-------------------------------------
Changes between cordova-3.6.3 and cordova-3.6.4 (android platform)
{code}
/*jshint -W079 */
@@ -175,7 +175,8 @@ function createEvent(type, data) {
var cordova = {
define:define,
require:require,
- version:CORDOVA_JS_BUILD_LABEL,
+ version:PLATFORM_VERSION_BUILD_LABEL,
+ platformVersion:PLATFORM_VERSION_BUILD_LABEL,
platformId:platform.id,
/**
* Methods to add/remove your own addEventListener hijacking on document + window.
@@ -1183,6 +1184,16 @@ function replaceNavigator(origNavigator) {
for (var key in origNavigator) {
if (typeof origNavigator[key] == 'function') {
newNavigator[key] = origNavigator[key].bind(origNavigator);
+ } else {
+ (function(k) {
+ Object.defineProperty(newNavigator, k, {
+ get: function() {
+ return origNavigator[k];
+ },
+ configurable: true,
+ enumerable: true
+ });
+ })(key);
}
}
}
@@ -1302,6 +1313,16 @@ function replaceNavigator(origNavigator) {
for (var key in origNavigator) {
if (typeof origNavigator[key] == 'function') {
newNavigator[key] = origNavigator[key].bind(origNavigator);
+ } else {
+ (function(k) {
+ Object.defineProperty(newNavigator, k, {
+ get: function() {
+ return origNavigator[k];
+ },
+ configurable: true,
+ enumerable: true
+ });
+ })(key);
}
}
}
{code}
> Add support for Cordova 4.1.2
> -----------------------------
>
> Key: JBIDE-18767
> URL: https://issues.jboss.org/browse/JBIDE-18767
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: aerogear-hybrid, cordovasim
> Reporter: Gorkem Ercan
> Assignee: Ilya Buziuk
> Labels: respin-a
> Fix For: 4.2.1.CR1
>
> Attachments: error.png
>
>
> Test Cordova 4.0.0 release with CordovaSim & Thym. Update the downloadable engines json
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the jbosstools-issues
mailing list