Skip to content

Commit

Permalink
change name to print function
Browse files Browse the repository at this point in the history
  • Loading branch information
matiu committed Mar 4, 2014
1 parent 5acb847 commit e1e30c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<script type="text/javascript">

console.log = function(s){
print = function(s){
var div = document.getElementById('content');
div.innerHTML += s + '<br />';
};
Expand All @@ -31,9 +31,9 @@

try {
addr.validate();
console.log(addr.data + ": is a valid address");
print(addr.data + ": is a valid address");
} catch(e) {
console.log(addr.data + ": is not a valid address.");
print(addr.data + ": is not a valid address.");
}

});
Expand Down

0 comments on commit e1e30c5

Please sign in to comment.