Permalink
Browse files

Fixed warnings

  • Loading branch information...
Miroff committed May 2, 2012
1 parent 3e1cfc9 commit 64fe4fa4693a60ab15eab9bb4d62695275ca7d6c
Showing with 13 additions and 17 deletions.
  1. +3 −1 .gitignore
  2. +5 −6 debug/index.html
  3. +2 −0 debug/kothic-include.js
  4. +3 −10 debug/performance.html
View
@@ -1,4 +1,6 @@
*.pyc
parsetab.py
styles/icons
-debug/styles/osmosnimki.png
+debug/styles/osmosnimki.png
+*.iml
+*.imi
View
@@ -39,7 +39,7 @@
<option value="mapnik">OSM (Kothic-JS)</option>
<option value="tiles">Osmosnimki (Mapnik)</option>
</select>
- <input type="checkbox" id="overlay" label="aaa">Surface overlay</input>
+ <input type="checkbox" id="overlay">Surface overlay</input>
<div id="trace">Rendering...</div>
</div>
<script type="text/javascript">
@@ -60,17 +60,16 @@
kothic.on('load', function() {
var messages = kothic.getDebugMessages(),
- len = messages.length,
- messages = messages.slice(Math.max(len - 4, 0), len);
+ len = messages.length;
- showMessages(messages);
+ showMessages(messages.slice(Math.max(len - 4, 0), len));
});
function showMessages(messages) {
$('#trace').empty();
$(messages).each(function(index, msg) {
$('<div>', {
- class: 'tileIndex',
+ 'class': 'tileIndex',
text: msg.x + ":" + msg.y + ":" + msg.zoom
}).appendTo($('#trace'));
@@ -96,7 +95,7 @@
for (var i = 1; i < msg.events.length; i++) {
$("<tr>").append($("<td>", {
- class: 'time',
+ 'class': 'time',
text: (msg.events[i].timestamp - t0) + " ms"
})).append($("<td>", {
text: msg.events[i].message
View
@@ -31,6 +31,8 @@
}
}
}
+
+ return "";
}
var path = getSrcUrl();
View
@@ -14,25 +14,21 @@
<!-- osmosnimki.ru style (Generated from MapCSS) -->
<script src="styles/osmosnimki.js"></script>
- <!-- jQuery. It's not required for Kothic, but still useful for this example -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
-
- <script src="benchmark.js"></script>
+ <script src="benchmark.js"></script>
</head>
<body>
<script src="http://www.browserscope.org/ua?o=js"></script>
<div class="controls">
- <button id="runButton" disabled="true">Run!</button>
+ <button id="runButton" disabled="disabled">Run!</button>
<div id="testStatus"></div>
</div>
<div id="results">
</div>
<canvas id="map" width="1000" height="1000"></canvas>
<script type="text/javascript">
- var trials = 1000;
var kothic = new Kothic({
buffered: false,
- styles: ['osmosnimki'],
+ styles: ['osmosnimki']
});
MapCSS.onImagesLoad = function () {
@@ -83,14 +79,11 @@
$('#results').text(String(bench));
$('#testStatus').text();
samples = 0;
-
-
})
.on('complete', function() {
$('#runButton').attr("disabled", false);
});
-
$('#runButton').click(function () {
$('#runButton').attr("disabled", true);
suite.run(true);

0 comments on commit 64fe4fa

Please sign in to comment.