lib/ymdp/javascripts/jquery/education.js in ymdp-0.7.1 vs lib/ymdp/javascripts/jquery/education.js in ymdp-0.7.2
- old
+ new
@@ -1,26 +1,22 @@
var Education;
Education = {
init: function(name) {
- try {
- Debug.log("Education.init", name);
- var m;
+ Debug.log("Education.init", name);
+ var m;
+
+ Education.name = name;
- Education.name = name;
-
- m = "";
- m = m + Tags.linkToFunction("Close", "Education.educate(); return false;", {"class": "close"});
- m = m + Education.educationModule();
-
- Education.container().insert(m);
- Education.container().insert({"after": Education.forcedEducation()});
-
- Education.load();
- } catch(omg) {
- Debug.error(omg);
- }
+ m = "";
+ m = m + Tags.linkToFunction("Close", "Education.educate(); return false;", {"class": "close"});
+ m = m + Education.educationModule();
+
+ Education.container().insert(m);
+ Education.container().insert({"after": Education.forcedEducation()});
+
+ Education.load();
},
educationModule: function() {
var m;
@@ -149,20 +145,11 @@
container: function() {
return $('#education');
},
load: function() {
- try {
- Debug.log('Education.load');
- Education.get({}, function(response) {
- Education.show(response);
- });
- } catch(err) {
- YMDP.showError({
- "method": "Education.load",
- "type": "exception caught",
- "error": err
- });
- Debug.error(err);
- }
+ Debug.log('Education.load');
+ Education.get({}, function(response) {
+ Education.show(response);
+ });
}
};
\ No newline at end of file