Minifying javascripts is evil. Let's not do it.
The microformats stuff was unused
This commit is contained in:
parent
b0cae37b0f
commit
c8d613b916
@ -1,14 +0,0 @@
|
|||||||
.fake: clean all
|
|
||||||
|
|
||||||
TARGETS=usermap-mxn-openlayers.min.js
|
|
||||||
|
|
||||||
CORE=js/mxn.js js/mxn.core.js
|
|
||||||
USERMAP=usermap.js
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(TARGETS)
|
|
||||||
|
|
||||||
usermap-mxn-openlayers.min.js: $(CORE) js/mxn.openlayers.core.js $(USERMAP)
|
|
||||||
cat $+ | yui-compressor -o $@ --type=js
|
|
@ -116,20 +116,10 @@ class MapstractionPlugin extends Plugin
|
|||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
$action->script(sprintf('%s?(%s)',
|
||||||
if ($this->provider == 'openlayers') {
|
$this->path('js/mxn.js'),
|
||||||
// We have an optimized path for our default case.
|
$this->provider));
|
||||||
//
|
$action->script($this->path('usermap.js'));
|
||||||
// Note that OpenLayers.js needs to be separate, or it won't
|
|
||||||
// be able to find its UI images and styles.
|
|
||||||
$action->script($this->path('usermap-mxn-openlayers.min.js'));
|
|
||||||
} else {
|
|
||||||
$action->script(sprintf('%s?(%s)',
|
|
||||||
$this->path('js/mxn.js'),
|
|
||||||
$this->provider));
|
|
||||||
|
|
||||||
$action->script($this->path('usermap.js'));
|
|
||||||
}
|
|
||||||
|
|
||||||
$action->inlineScript(sprintf('var _provider = "%s";', $this->provider));
|
$action->inlineScript(sprintf('var _provider = "%s";', $this->provider));
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -28,15 +28,6 @@ function scrapeUser()
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function getMicroformatValue(element)
|
|
||||||
{
|
|
||||||
if(element[0].tagName.toLowerCase() == 'abbr'){
|
|
||||||
return element.attr('title');
|
|
||||||
}else{
|
|
||||||
return element.text();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function getNoticeFromElement(noticeElement)
|
function getNoticeFromElement(noticeElement)
|
||||||
{
|
{
|
||||||
var notice = {};
|
var notice = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user