]> git.scottworley.com Git - picsort/commitdiff
Use $.attr()
authorScott Worley <scottworley@scottworley.com>
Thu, 27 Feb 2014 02:02:44 +0000 (18:02 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 27 Feb 2014 02:02:44 +0000 (18:02 -0800)
picsorter.js

index 9a1b1c11b678be42e1ba71fb85ec69ec6a9686d0..c51b51ed6ef64845d73e9f54d46d93d4f711b0d1 100644 (file)
@@ -1,7 +1,7 @@
 var exposure = 20;
 
 function setpic(pic) {
-  $("#pic")[0].src = exposure + "/" + pic;
+  $("#pic").attr("src", exposure + "/" + pic);
 }
 
 $(function() {