Merge pull request #536 from metamaps/feature/metamaps.debug

metamaps.debug function, and move VERSION into a rails constant initializer.
This commit is contained in:
Devin Howard 2016-04-13 10:14:23 +08:00
commit 6659a97f28
4 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,7 @@
Metamaps.Debug = function() {
console.debug(Metamaps)
console.debug(`Metamaps Version: ${Metamaps.VERSION}`)
}
Metamaps.debug = function() {
Metamaps.Debug()
}

View file

@ -16,11 +16,12 @@ var labelType, useGradients, nativeTextSupport, animate;
animate = !(iStuff || !nativeCanvasSupport);
})();
// TODO eliminate these 4 top-level variables
// TODO eliminate these 5 top-level variables
Metamaps.panningInt = null;
Metamaps.tempNode = null;
Metamaps.tempInit = false;
Metamaps.tempNode2 = null;
Metamaps.VERSION = '<%= VERSION %>'
Metamaps.Settings = {
embed: false, // indicates that the app is on a page that is optimized for embedding in iFrames on other web pages

View file

@ -18,7 +18,7 @@
<div id="rightAboutParms">
<p>PRIVATE BETA</p>
<p>2.8</p>
<p><%= VERSION %></p>
<p>Mar 26, 2016</p>
</div>
<div class="clearfloat">

View file

@ -0,0 +1 @@
VERSION = '2.8.3'