Fix a few JS warnings that pop into the console

This commit is contained in:
Francois Marier 2014-04-24 16:39:27 +12:00
Родитель 2d83067960
Коммит 088617d834
3 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -286,6 +286,7 @@ function GraphEdge(source, target, connection) {
if (connection) {
this.cookieCount = connection.cookie ? 1 : 0;
}
return this;
// console.log('edge: %s', this.name);
}
GraphEdge.prototype.lastAccess = function () {

Просмотреть файл

@ -26,9 +26,11 @@ function svgdataset(elem) {
return value;
}
} else {
elem.setAttribute(dataKeyToAttr(key), JSON.stringify(value));
var s = JSON.stringify(value);
elem.setAttribute(dataKeyToAttr(key), s);
return s;
}
}
};
// Create read-only shortcuts for convenience
Array.prototype.forEach.call(elem.attributes, function (attr) {
if (attr.name.startsWith('data-')) {

Просмотреть файл

@ -182,6 +182,7 @@ global.getZoom = function getZoom(canvas) {
} catch (e) {
console.log('error in getZoom, called with %o instead of an element');
console.log('Caller: %o', caller);
return null;
}
}