Updated classes.css

This commit is contained in:
xdrm-brackets 2017-11-15 14:23:13 +01:00
parent f06377004a
commit f4a549e960
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
package Classes.css.core;
import java.util.HashMap;
public class Context{
/* Context data (associative array) */
private static HashMap<String, Object> attr = new HashMap<String, Object>();
/* Add data */
public static void bind(String index, Object data){
Context.attr.put(index, data);
}
/* Fetch data */
public static Object get(String index){
return Context.attr.get(index);
}
}

View File

@ -65,7 +65,7 @@ public class Ruleset {
/* (x) If nothing custom -> suppose java fx rule */
else
new_rule = (Rule) new JavaFX(l_side, (String) r_side[0]);
new_rule = (Rule) new JavaFX(l_side, r_side[0].toString());