return ret;
}
-// These functions are both based on MochiKit.
+// These functions are all based on MochiKit.
Dygraph.isArrayLike = function (o) {
var typ = typeof(o);
if (
return true;
};
+Dygraph.clone = function(obj) {
+ var me = arguments.callee;
+ me.prototype = obj;
+ return new me();
+};
+
/**
* Get the CSV data. If it's in a function, call that function. If it's in a