ymdp 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.8.1
@@ -83,43 +83,31 @@ YMDP.Init.after = function() {
83
83
  };
84
84
 
85
85
  YMDP.setJSON = function() {
86
- try {
87
- alert("about to set JSON");
88
- if (JSON) {
89
- alert("JSON exists");
90
- true;
91
- }
92
- if (YUI) {
93
- alert("YUI exists " + YUI);
94
- YUI().use('json', function(Y) {
95
- return window.JSON = Y.JSON;
96
- });
97
- } else if (YAHOO.lang) {
98
- alert("YAHOO.lang exists " + YAHOO.lang);
99
- window.JSON = YAHOO.lang.JSON;
100
- }
101
- } catch (omg) {
102
- alert(omg.message);
86
+ if (JSON) {
87
+ return true;
88
+ }
89
+ if (YUI) {
90
+ YUI().use('json', function(Y) {
91
+ return window.JSON = Y.JSON;
92
+ });
93
+ } else if (YAHOO.lang) {
94
+ window.JSON = YAHOO.lang.JSON;
103
95
  }
104
96
  };
105
97
 
106
98
  // Execute the before, startup and after methods. Do not overwrite. (Change YMDP.Init.startup to create a custom initializer.)
107
99
  YMDP.init = function() {
108
- try {
109
- YMDP.setJSON(); // must set JSON first because Debug uses it
110
- Debug.log("OIB.init for view " + View.name, "<%= @message %>");
111
- Logger.init();
112
- Tags.init();
113
- YMDP.Init.browser();
114
- YMDP.Init.resources();
115
- I18n.addLanguageToBody();
116
- I18n.translateLoading();
117
- I18n.translateError();
118
- YMDP.Init.before();
119
- YMDP.Init.startup();
120
- } catch(omg) {
121
- alert("YMDP.init " + omg.message);
122
- }
100
+ YMDP.setJSON(); // must set JSON first because Debug uses it
101
+ Debug.log("OIB.init for view " + View.name, "<%= @message %>");
102
+ Logger.init();
103
+ Tags.init();
104
+ YMDP.Init.browser();
105
+ YMDP.Init.resources();
106
+ I18n.addLanguageToBody();
107
+ I18n.translateLoading();
108
+ I18n.translateError();
109
+ YMDP.Init.before();
110
+ YMDP.Init.startup();
123
111
  };
124
112
 
125
113
  YMDP.Init.browser = function() {
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ymdp}
8
- s.version = "0.8.0"
8
+ s.version = "0.8.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Isaac Priestley"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ymdp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 0
10
- version: 0.8.0
9
+ - 1
10
+ version: 0.8.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Isaac Priestley