提交 ce0b1d0f 编写于 作者: L Leon Shi 提交者: GitHub

Merge pull request #29 from yihou/master

Avoid using arguments.callee, because it may cause problems while using the package in npm
......@@ -584,7 +584,7 @@
if ($.isFunction(data)) {
throwError('Unexpect parameter of the "done" Function.');
}
args.callee.call(self, data, callback);
$.fn[pluginName].call(self, data, callback);
});
} else if (typeof dataSource === 'string') {
if (/^https?|file:/.test(dataSource)) {
......@@ -821,7 +821,7 @@
}
// Attributes
var attributes = $.extend({}, arguments.callee.defaults, options);
var attributes = $.extend({}, $.fn[pluginName].defaults, options);
// Check parameters
parameterChecker(attributes);
......
此差异已折叠。
......@@ -584,7 +584,7 @@
if ($.isFunction(data)) {
throwError('Unexpect parameter of the "done" Function.');
}
args.callee.call(self, data, callback);
$.fn[pluginName].call(self, data, callback);
});
} else if (typeof dataSource === 'string') {
if (/^https?|file:/.test(dataSource)) {
......@@ -821,7 +821,7 @@
}
// Attributes
var attributes = $.extend({}, arguments.callee.defaults, options);
var attributes = $.extend({}, $.fn[pluginName].defaults, options);
// Check parameters
parameterChecker(attributes);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册