From 289189dd7889a86990f39639825e90c1cabeb892 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 6 Feb 2010 19:29:16 +0530 Subject: [PATCH] use Ox.print instead of console.log --- build/js/ox.js | 2 +- demos/geo/geo.html | 10 +++++----- demos/png/index.html | 4 ++-- demos/png/ox.png.js | 2 +- demos/test/app.js | 2 +- demos/test/index.html | 6 +++--- demos/test/test.js | 6 +++--- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/build/js/ox.js b/build/js/ox.js index 2ebabc9..a361cb0 100644 --- a/build/js/ox.js +++ b/build/js/ox.js @@ -1526,4 +1526,4 @@ Ox.isUndefined = function(val) { true */ return typeof val == "undefined"; -}; \ No newline at end of file +}; diff --git a/demos/geo/geo.html b/demos/geo/geo.html index da41c15..abf177f 100644 --- a/demos/geo/geo.html +++ b/demos/geo/geo.html @@ -65,7 +65,7 @@ latLng = Ox.getLatLng((e.clientX - left) / width, (e.clientY - top) / height); Ox.getPlacemarks(latLng.lat, latLng.lng, function(data) { var length = data.results.length; - console.log(data) + Ox.print(data) if (length && data.results[length - 1].types[0] == "country") { var $img = $("#" + data.results[length - 1].address_components[0].short_name); if (!$img.length) { @@ -73,7 +73,7 @@ if (data.results.length) { var location = data.results[0].geometry.location, xy = Ox.getXY(location.lat(), location.lng()); - //console.log(+new Date, place.name, location, xy); + //Ox.print(+new Date, place.name, location, xy); var $img = $("") .attr({ id: data.results[0].address_components[0].short_name, @@ -98,7 +98,7 @@ $img.removeClass("hover"); }, 1000); } else { - //console.log("no results", place, data) + //Ox.print("no results", place, data) } }); } else { @@ -169,10 +169,10 @@ lng: data.results[0].geometry.viewport.getNorthEast().lng().toFixed(10) } }; - console.log(JSON.stringify(d)) + Ox.print(JSON.stringify(d)) json.push(d); } else { - console.log("no results", place, data) + Ox.print("no results", place, data) } }); if (places.length) { diff --git a/demos/png/index.html b/demos/png/index.html index 8b44e98..149d1f1 100644 --- a/demos/png/index.html +++ b/demos/png/index.html @@ -11,8 +11,8 @@ $(function() { var png = new Ox.PNG("http://khm0.google.com/kh/v=46&x=0&y=0&z=0"); png.load(function() { - console.log(png.getChunks()); - console.log(png.getSize()); + Ox.print(png.getChunks()); + Ox.print(png.getSize()); png.appendTo("body") }) }); diff --git a/demos/png/ox.png.js b/demos/png/ox.png.js index 7346557..24baf11 100644 --- a/demos/png/ox.png.js +++ b/demos/png/ox.png.js @@ -64,7 +64,7 @@ Ox = Ox || {}; var canvas = self.getCanvas(); that.context = canvas.context; that.canvas = canvas.canvas; - console.log(self.getChunks()) + Ox.print(self.getChunks()) callback(); }; that.addChunk = function(options) { diff --git a/demos/test/app.js b/demos/test/app.js index a65a07a..905b013 100644 --- a/demos/test/app.js +++ b/demos/test/app.js @@ -8,7 +8,7 @@ $(function() { { value: "Change Title", click: function() { - console.log("click to change title") + Ox.print("click to change title") $dialog.options({ title: "New Title" }); diff --git a/demos/test/index.html b/demos/test/index.html index 1142d85..e00a1b6 100644 --- a/demos/test/index.html +++ b/demos/test/index.html @@ -200,7 +200,7 @@ .bindEvent("change." + range.id, update) .appendTo($toolbars[4]); function update() { - //console.log("update", range.options("value")) + //Ox.print("update", range.options("value")) /* // fixme: make this work input.options({ @@ -209,7 +209,7 @@ */ input.val(range.options("value").toFixed(1)) } - //console.log("binding to OxRange" + range.id + "Change") + //Ox.print("binding to OxRange" + range.id + "Change") Ox.Range({ animate: true, arrows: true, @@ -272,7 +272,7 @@ } } function clickButton(val) { - // console.log(val); + // Ox.print(val); } }); diff --git a/demos/test/test.js b/demos/test/test.js index df3ed55..d01c1b1 100644 --- a/demos/test/test.js +++ b/demos/test/test.js @@ -204,7 +204,7 @@ Ox = { })(); self.onChange = function(option, value) { if (option == "foo") { - console.log("foo set to", value); + Ox.print("foo set to", value); } } that.getTime = function() { @@ -225,8 +225,8 @@ Ox = { self.time = 0; })(); that.bar = function() { - console.log("Bar.bar()"); + Ox.print("Bar.bar()"); } return that; } -})(); \ No newline at end of file +})();