Browse Source

change name to print function

patch-2
Matias Alejo Garcia 11 years ago
parent
commit
e1e30c5f7c
  1. 6
      examples/example.html

6
examples/example.html

@ -11,7 +11,7 @@
<script type="text/javascript"> <script type="text/javascript">
console.log = function(s){ print = function(s){
var div = document.getElementById('content'); var div = document.getElementById('content');
div.innerHTML += s + '<br />'; div.innerHTML += s + '<br />';
}; };
@ -31,9 +31,9 @@
try { try {
addr.validate(); addr.validate();
console.log(addr.data + ": is a valid address"); print(addr.data + ": is a valid address");
} catch(e) { } catch(e) {
console.log(addr.data + ": is not a valid address."); print(addr.data + ": is not a valid address.");
} }
}); });

Loading…
Cancel
Save