Supersized.js api错误

时间:2013-07-04 13:36:48

标签: javascript jquery html json supersized

我有superzied.js 3.2.7和jquery 1.10.1 with migrate plugin 1.2.1,在firefox中我收到错误:

TypeError: api.getField(...) is undefined

这一行是:

if (api.getField('seed').indexOf('no_image.png') != -1) actual_width = '';

Chrome中的同样问题是:Uncaught TypeError: Cannot call method 'indexOf' of undefined.

我找到了这个,但我做的一切都很正确:https://github.com/buildinternet/supersized/issues/30

1 个答案:

答案 0 :(得分:0)

api.getField函数在supersize.xx.xx.js中定义,如下所示(你需要检查这个函数是否标记为在超大尺寸上禁用或删除.... js)

base.getField = function(field){
    return base.options.slides[vars.current_slide][field];
};