diff --git a/assembly/pom.xml b/assembly/pom.xml index 9e3384036..89929770b 100644 --- a/assembly/pom.xml +++ b/assembly/pom.xml @@ -22,7 +22,7 @@ org.apache.shindig shindig-project - 2.0.1-SNAPSHOT + 2.0.1.3 ../pom.xml diff --git a/extras/pom.xml b/extras/pom.xml index 8d99f9fc3..ff03ea745 100644 --- a/extras/pom.xml +++ b/extras/pom.xml @@ -22,7 +22,7 @@ org.apache.shindig shindig-project - 2.0.1-SNAPSHOT + 2.0.1.3 ../pom.xml diff --git a/features/pom.xml b/features/pom.xml index 5149f6030..51ad9c31e 100644 --- a/features/pom.xml +++ b/features/pom.xml @@ -23,7 +23,7 @@ org.apache.shindig shindig-project - 2.0.1-SNAPSHOT + 2.0.1.3 ../pom.xml diff --git a/features/src/main/javascript/features/core.json/json.js b/features/src/main/javascript/features/core.json/json.js index 41544e3b7..996d738cc 100644 --- a/features/src/main/javascript/features/core.json/json.js +++ b/features/src/main/javascript/features/core.json/json.js @@ -175,7 +175,6 @@ if (window.JSON && window.JSON.parse && window.JSON.stringify) { // Join all of the member texts together and wrap them in braces. return '{' + a.join(',') + '}'; } - return "undefined"; } return { diff --git a/features/src/main/javascript/features/rpc/blank.transport.js b/features/src/main/javascript/features/rpc/blank.transport.js new file mode 100644 index 000000000..0433e0303 --- /dev/null +++ b/features/src/main/javascript/features/rpc/blank.transport.js @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +gadgets.rpctx = gadgets.rpctx || {}; + +if (!gadgets.rpctx.blank) { // make lib resilient to double-inclusion + +gadgets.rpctx.blank = function() { + return { + getCode: function() { + return 'blank'; + }, + + isParentVerifiable: function() { + return true; + }, + + init: function(processFn, readyFn) { + readyFn('..', true); // Immediately ready to send to parent. + return true; + }, + + setup: function(receiverId, token, forceSecure) { + return true; + }, + + call: function(targetId, from, rpc) { + // should never happen + } + }; +}(); + +} // !end of double-inclusion guard diff --git a/features/src/main/javascript/features/rpc/feature.xml b/features/src/main/javascript/features/rpc/feature.xml index a5f7fe77c..3a81151f1 100644 --- a/features/src/main/javascript/features/rpc/feature.xml +++ b/features/src/main/javascript/features/rpc/feature.xml @@ -36,7 +36,7 @@ useLegacyProtocol: Boolean