Cleaned code

This commit is contained in:
Abdullah Almsaeed
2015-02-20 16:46:03 -05:00
parent 45c82f5a1a
commit ffb2731764
24 changed files with 857 additions and 965 deletions

View File

@@ -1115,9 +1115,8 @@ if (!document.createElement('canvas').getContext) {
x: Z * (aX * m[0][0] + aY * m[1][0] + m[2][0]) - Z2,
y: Z * (aX * m[0][1] + aY * m[1][1] + m[2][1]) - Z2
};
};
contextPrototype.save = function() {
}
contextPrototype.save = function() {
var o = {};
copyState(this, o);
this.aStack_.push(o);
@@ -1366,7 +1365,7 @@ if (!document.createElement('canvas').getContext) {
case null:
case '':
this.repetition_ = 'repeat';
break
break;
case 'repeat-x':
case 'repeat-y':
case 'no-repeat':

View File

@@ -68,7 +68,7 @@
};
return o.normalize();
}
};
// extract CSS color property from element, going up in the DOM
// if it's "transparent"
@@ -89,7 +89,7 @@
c = "transparent";
return $.color.parse(c);
}
};
// parse CSS color string (like "rgb(10, 32, 43)" or "#fff"),
// returns color object, if parsing failed, you get black (0, 0,
@@ -130,7 +130,7 @@
res = lookupColors[name] || [0, 0, 0];
return m(res[0], res[1], res[2]);
}
}
};
var lookupColors = {
aqua:[0,255,255],

View File

@@ -94,7 +94,7 @@ Google Maps).
callback();
});
}
};
$.plot.image.load = function (urls, callback) {
var missing = urls.length, loaded = {};

View File

@@ -318,7 +318,7 @@ More detail and specific examples can be found in the included HTML file.
if (options.series.pie.tilt <= 0.8) {
drawShadow();
}
} while (!drawPie() && attempts < REDRAW_ATTEMPTS)
} while (!drawPie() && attempts < REDRAW_ATTEMPTS);
if (attempts >= REDRAW_ATTEMPTS) {
clear();

View File

@@ -114,9 +114,8 @@ API.txt for details.
sourceObj[sourceMethod] = function() {
return targetObj[targetMethod].apply(targetObj, arguments);
};
};
var utc = {
}
var utc = {
date: d
};
@@ -137,9 +136,8 @@ API.txt for details.
}
return utc;
};
// select time zone strategy. This returns a date-like object tied to the
}
// select time zone strategy. This returns a date-like object tied to the
// desired timezone
function dateGenerator(ts, opts) {