mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-25 21:24:36 +02:00
stuff
This commit is contained in:
parent
576823dbfd
commit
ab5a752691
7 changed files with 35 additions and 31 deletions
|
@ -7,6 +7,7 @@ var Main = require('../app');
|
|||
|
||||
var Errors = require('../util/errors');
|
||||
var Sandbox = require('../level/sandbox').Sandbox;
|
||||
var Constants = require('../util/constants');
|
||||
|
||||
var Visualization = require('../visuals/visualization').Visualization;
|
||||
var ParseWaterfall = require('../level/parseWaterfall').ParseWaterfall;
|
||||
|
|
|
@ -205,7 +205,7 @@ var Sandbox = Backbone.View.extend({
|
|||
'level': this.startLevel,
|
||||
'sandbox': this.exitLevel,
|
||||
'levels': this.showLevels,
|
||||
'iosAlert': this.iosAlert,
|
||||
'mobileAlert': this.mobileAlert,
|
||||
'build level': this.buildLevel,
|
||||
'export tree': this.exportTree,
|
||||
'import tree': this.importTree,
|
||||
|
@ -335,10 +335,9 @@ var Sandbox = Backbone.View.extend({
|
|||
}
|
||||
},
|
||||
|
||||
iosAlert: function(command, deferred) {
|
||||
var whenClosed = Q.defer();
|
||||
alert("Can't bring up the keyboard on iOS, try visiting on desktop! :D");
|
||||
whenClosed.resolve();
|
||||
mobileAlert: function(command, deferred) {
|
||||
alert("Can't bring up the keyboard on mobile / tablet :( try visiting on desktop! :D");
|
||||
command.finishWith(deferred);
|
||||
},
|
||||
|
||||
delay: function(command, deferred) {
|
||||
|
|
|
@ -53,7 +53,7 @@ var regexMap = {
|
|||
'sandbox': /^sandbox($|\s)/,
|
||||
'level': /^level\s?([a-zA-Z0-9]*)/,
|
||||
'levels': /^levels($|\s)/,
|
||||
'iosAlert': /^iOS alert($|\s)/,
|
||||
'mobileAlert': /^mobile alert($|\s)/,
|
||||
'build level': /^build level($|\s)/,
|
||||
'export tree': /^export tree$/,
|
||||
'import tree': /^import tree$/,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue