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:
commit
6659a97f28
4 changed files with 11 additions and 2 deletions
7
app/assets/javascripts/src/Metamaps.Debug.js.erb
Normal file
7
app/assets/javascripts/src/Metamaps.Debug.js.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
Metamaps.Debug = function() {
|
||||
console.debug(Metamaps)
|
||||
console.debug(`Metamaps Version: ${Metamaps.VERSION}`)
|
||||
}
|
||||
Metamaps.debug = function() {
|
||||
Metamaps.Debug()
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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">
|
||||
|
|
1
config/initializers/version.rb
Normal file
1
config/initializers/version.rb
Normal file
|
@ -0,0 +1 @@
|
|||
VERSION = '2.8.3'
|
Loading…
Reference in a new issue