From 0fced02dda7846fcc601cc5518d2f46d37b1ff43 Mon Sep 17 00:00:00 2001
From: rolux
Date: Sat, 23 Jun 2012 01:55:42 +0200
Subject: [PATCH] minor reformatting
---
.../ipv4_map_of_the_internet/js/example.js | 26 +++++++------------
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git a/examples/maps/ipv4_map_of_the_internet/js/example.js b/examples/maps/ipv4_map_of_the_internet/js/example.js
index 088c9d1a..97b8f18b 100644
--- a/examples/maps/ipv4_map_of_the_internet/js/example.js
+++ b/examples/maps/ipv4_map_of_the_internet/js/example.js
@@ -145,7 +145,7 @@ Ox.load('UI', function() {
if (!self.text) {
Ox.get('html/about.html', function(data) {
self.text = data;
- self.$text.html(data/*data.split('
')[0]*/);
+ self.$text.html(data);
self.$dialog.open();
});
} else {
@@ -218,27 +218,21 @@ Ox.load('UI', function() {
}
}, function(keys, section) {
self.$controlsPanel.append(
- $('')
- .addClass('textTitle')
- .html(section)
+ $('
').addClass('textTitle').html(section)
);
Ox.forEach(keys, function(value, key) {
self.$controlsPanel
.append(
- $('
')
- .addClass('textKey')
- .html(
- key.split(' ').map(function(key) {
- return key.split('+').map(function(key) {
- return Ox.UI.symbols[key] || key;
- }).join('')
- }).join(' ')
- )
+ $('
').addClass('textKey').html(
+ key.split(' ').map(function(key) {
+ return key.split('+').map(function(key) {
+ return Ox.UI.symbols[key] || key;
+ }).join('')
+ }).join(' ')
+ )
)
.append(
- $('
')
- .addClass('textValue')
- .html(value)
+ $('
').addClass('textValue').html(value)
);
});
});