Permalink
Browse files

Code style improvements

Hopefully i touched the correct double quotes :)
  • Loading branch information...
1 parent bb9e718 commit 902f6148659dd3d8a145ae458a525baff05434bd helt committed Oct 27, 2015
Showing with 5 additions and 5 deletions.
  1. +5 −5 plugins/sigma.renderers.customShapes/sigma.renderers.customShapes.js
@@ -32,16 +32,16 @@
if(!image) {
image = document.createElement('IMG');
image.src = url;
- image.status="loading";
+ image.status = 'loading';
image.onerror = function() {
- console.log("error loading ", url);
- image.status="error";
+ console.log("error loading", url);
+ image.status = 'error';
};
image.onload = function(){
// TODO see how we redraw on load
// need to provide the siginst as a parameter to the library
console.log("redraw on image load", url);
- image.status="ok";
+ image.status = 'ok';
sigInst.refresh();
};
imgCache[url] = image;
@@ -59,7 +59,7 @@
context.closePath();
context.clip();
- if(image.status =="ok") {
+ if(image.status === 'ok') {
// Draw the actual image
context.drawImage(image,
x+Math.sin(-3.142/4)*r*xratio,

0 comments on commit 902f614

Please sign in to comment.