谷歌+1和prototype.js 1.6“未捕获TypeError:Function.prototype.apply:参数列表有错误的类型”

时间:2013-10-29 12:17:12

标签: prototypejs google-plus

google +1按钮和prototype.js 1.6库似乎有冲突,请参阅http://jsfiddle.net/9EF9N/

<div class="g-plusone" data-annotation="inline" data-width="300"></div>
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

如果切换到原型1.7,一切都按预期工作。 我无法更新原型库,因为它位于基于Magento 1.5的复杂应用程序中。

是否有人遇到同样的问题,可能会给我一个解决方案?

1 个答案:

答案 0 :(得分:0)

似乎googel改变了一些东西。它现在再次运作。