app/assets/javascripts/libs/jquery.offline.js
Function retrieveJSON
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.retrieveJSON = function(url, data, fn) {
// allow jQuery.retrieveJSON(url, fn)
if ($.isFunction(data)) {
fn = data;
data = {};
Function getJSON
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getJSON(url, data, fn) {
if (jQuery.isFunction(data)) {
fn = data;
data = null;
}