master
skylarmt 10 years ago
parent 238505bbca
commit ae50d252bb

@ -78,8 +78,9 @@ public class CodeRunner {
}
/**
* Allows use of Math.blah() as just blah().
* Also gives access to SyMAT Java functions.
* Allows use of Math.blah() as just blah(). Also gives access to SyMAT Java
* functions.
*
* @param eval input string
* @return wrapped input
*/
@ -112,4 +113,13 @@ public class CodeRunner {
}
return text;
}
// TODO: Run Javascript in separate thread from rest of app.
private class JsThread extends Thread {
@Override
public void run() {
}
}
}

@ -48,4 +48,11 @@ public class PrefStorage {
public static String getSetting(String key, String emptyResponse) {
return prefs.get(key, emptyResponse);
}
// xkcd 221 compliance.
int getRandomNumber()
{
return 4; // chosen by fair dice roll.
// guaranteed to be random.
}
}

Loading…
Cancel
Save