envjs 0.1.7 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. data/.jslintrbrc +29 -0
  2. data/.project +17 -0
  3. data/CHANGELOG.rdoc +3 -0
  4. data/DTD/xhtml-lat1.ent +196 -0
  5. data/DTD/xhtml-special.ent +80 -0
  6. data/DTD/xhtml-symbol.ent +237 -0
  7. data/DTD/xhtml.soc +14 -0
  8. data/DTD/xhtml1-frameset.dtd +1235 -0
  9. data/DTD/xhtml1-strict.dtd +978 -0
  10. data/DTD/xhtml1-transitional.dtd +1201 -0
  11. data/DTD/xhtml1.dcl +192 -0
  12. data/Makefile +7 -0
  13. data/Manifest.txt +287 -0
  14. data/{README → README.rdoc} +24 -3
  15. data/Rakefile +196 -0
  16. data/Wakefile +24 -0
  17. data/build.properties +9 -0
  18. data/build.xml +247 -0
  19. data/gm/jquery.js +6002 -0
  20. data/gm/mainx.js +2648 -0
  21. data/gm/sensx.js +135 -0
  22. data/gm/t.js +6 -0
  23. data/gm/x.html +76 -0
  24. data/htmlparser/BrowserTreeBuilder.java +456 -0
  25. data/htmlparser/README +34 -0
  26. data/htmlparser/build.sh +38 -0
  27. data/jsl/jsl +0 -0
  28. data/jsl/jsl.default.conf +129 -0
  29. data/jsl/jsl.exe +0 -0
  30. data/lib/envjs.rb +2 -0
  31. data/lib/envjs/env.js +22 -3
  32. data/lib/envjs/event_loop.js +2 -0
  33. data/lib/envjs/static.js +155 -21
  34. data/licenses/GPL-LICENSE.txt +278 -0
  35. data/licenses/MIT-LICENSE.txt +20 -0
  36. data/src/base64.js +80 -0
  37. data/src/build.js +6 -0
  38. data/src/cruft/bad.html +24 -0
  39. data/src/cruft/dom.js +606 -0
  40. data/src/cruft/element.js +297 -0
  41. data/src/cruft/good.html +30 -0
  42. data/src/cruft/good.js +32 -0
  43. data/src/cruft/internal.js +81 -0
  44. data/src/cruft/parser.js +458 -0
  45. data/src/css/properties.js +293 -0
  46. data/src/css/rule.js +22 -0
  47. data/src/css/sizzle.js +717 -0
  48. data/src/css/stylesheet.js +52 -0
  49. data/src/dom/attr.js +55 -0
  50. data/src/dom/cdatasection.js +31 -0
  51. data/src/dom/characterdata.js +119 -0
  52. data/src/dom/comment.js +30 -0
  53. data/src/dom/doctype.js +9 -0
  54. data/src/dom/document.js +553 -0
  55. data/src/dom/dom.js +134 -0
  56. data/src/dom/element.js +217 -0
  57. data/src/dom/entities.js +273 -0
  58. data/src/dom/exception.js +28 -0
  59. data/src/dom/fragment.js +37 -0
  60. data/src/dom/implementation.js +602 -0
  61. data/src/dom/instruction.js +51 -0
  62. data/src/dom/namednodemap.js +374 -0
  63. data/src/dom/namespace.js +50 -0
  64. data/src/dom/node.js +618 -0
  65. data/src/dom/nodelist.js +195 -0
  66. data/src/dom/parser.js +1207 -0
  67. data/src/dom/text.js +73 -0
  68. data/src/event/event.js +39 -0
  69. data/src/event/mouseevent.js +4 -0
  70. data/src/event/uievent.js +8 -0
  71. data/src/html/a.js +110 -0
  72. data/src/html/anchor.js +80 -0
  73. data/src/html/area.js +57 -0
  74. data/src/html/base.js +26 -0
  75. data/src/html/blockquote-q.js +19 -0
  76. data/src/html/body.js +19 -0
  77. data/src/html/button.js +21 -0
  78. data/src/html/canvas.js +14 -0
  79. data/src/html/col-colgroup.js +49 -0
  80. data/src/html/collection.js +72 -0
  81. data/src/html/cookie.js +151 -0
  82. data/src/html/del-ins.js +25 -0
  83. data/src/html/div.js +28 -0
  84. data/src/html/document.js +359 -0
  85. data/src/html/element.js +380 -0
  86. data/src/html/fieldset.js +19 -0
  87. data/src/html/form.js +484 -0
  88. data/src/html/frame.js +89 -0
  89. data/src/html/frameset.js +25 -0
  90. data/src/html/head.js +44 -0
  91. data/src/html/html.js +0 -0
  92. data/src/html/htmlparser.js +340 -0
  93. data/src/html/iframe.js +26 -0
  94. data/src/html/image.js +0 -0
  95. data/src/html/img.js +62 -0
  96. data/src/html/input-elements.js +307 -0
  97. data/src/html/input.js +65 -0
  98. data/src/html/label.js +26 -0
  99. data/src/html/legend.js +19 -0
  100. data/src/html/link.js +82 -0
  101. data/src/html/map.js +22 -0
  102. data/src/html/meta.js +37 -0
  103. data/src/html/object.js +89 -0
  104. data/src/html/optgroup.js +25 -0
  105. data/src/html/option.js +97 -0
  106. data/src/html/param.js +38 -0
  107. data/src/html/script.js +122 -0
  108. data/src/html/select.js +129 -0
  109. data/src/html/style.js +31 -0
  110. data/src/html/table.js +199 -0
  111. data/src/html/tbody-thead-tfoot.js +91 -0
  112. data/src/html/td-th.js +18 -0
  113. data/src/html/textarea.js +25 -0
  114. data/src/html/title.js +20 -0
  115. data/src/html/tr.js +114 -0
  116. data/src/intro.js +141 -0
  117. data/src/outro.js +70 -0
  118. data/src/parser/html5.detailed.js +10762 -0
  119. data/src/parser/html5.min.js +503 -0
  120. data/src/parser/html5.pretty.js +10815 -0
  121. data/src/parser/intro.js +42 -0
  122. data/src/parser/outro.js +9 -0
  123. data/src/platform/core.js +323 -0
  124. data/src/platform/johnson.js +479 -0
  125. data/src/platform/rhino.js +327 -0
  126. data/src/platform/static/intro.js +41 -0
  127. data/src/platform/static/outro.js +30 -0
  128. data/src/profile/aop.js +238 -0
  129. data/src/profile/profile.js +402 -0
  130. data/src/serializer/xml.js +21 -0
  131. data/src/svg/animatedstring.js +25 -0
  132. data/src/svg/document.js +25 -0
  133. data/src/svg/element.js +22 -0
  134. data/src/svg/locatable.js +17 -0
  135. data/src/svg/rect.js +18 -0
  136. data/src/svg/rectelement.js +24 -0
  137. data/src/svg/stylable.js +49 -0
  138. data/src/svg/svgelement.js +22 -0
  139. data/src/svg/transformable.js +15 -0
  140. data/src/window/css.js +15 -0
  141. data/src/window/dialog.js +16 -0
  142. data/src/window/document.js +28 -0
  143. data/src/window/event.js +262 -0
  144. data/src/window/history.js +62 -0
  145. data/src/window/location.js +138 -0
  146. data/src/window/navigator.js +48 -0
  147. data/src/window/screen.js +53 -0
  148. data/src/window/timer.js +21 -0
  149. data/src/window/window.js +284 -0
  150. data/src/window/xhr.js +127 -0
  151. data/src/xpath/expression.js +49 -0
  152. data/src/xpath/implementation.js +2482 -0
  153. data/src/xpath/result.js +67 -0
  154. data/src/xpath/util.js +551 -0
  155. data/src/xpath/xmltoken.js +149 -0
  156. data/src/xslt/COPYING +34 -0
  157. data/src/xslt/ajaxslt-0.8.1/AUTHORS +1 -0
  158. data/src/xslt/ajaxslt-0.8.1/ChangeLog +136 -0
  159. data/src/xslt/ajaxslt-0.8.1/Makefile +49 -0
  160. data/src/xslt/ajaxslt-0.8.1/README +102 -0
  161. data/src/xslt/ajaxslt-0.8.1/TODO +15 -0
  162. data/src/xslt/ajaxslt-0.8.1/dom.js +566 -0
  163. data/src/xslt/ajaxslt-0.8.1/dom_unittest.html +24 -0
  164. data/src/xslt/ajaxslt-0.8.1/dom_unittest.js +131 -0
  165. data/src/xslt/ajaxslt-0.8.1/simplelog.js +79 -0
  166. data/src/xslt/ajaxslt-0.8.1/test/xpath.html +18 -0
  167. data/src/xslt/ajaxslt-0.8.1/test/xpath_script.js +45 -0
  168. data/src/xslt/ajaxslt-0.8.1/test/xslt.html +58 -0
  169. data/src/xslt/ajaxslt-0.8.1/test/xslt_script.js +33 -0
  170. data/src/xslt/ajaxslt-0.8.1/unittestsuite.html +26 -0
  171. data/src/xslt/ajaxslt-0.8.1/xmltoken.js +149 -0
  172. data/src/xslt/ajaxslt-0.8.1/xmltoken_unittest.html +18 -0
  173. data/src/xslt/ajaxslt-0.8.1/xmltoken_unittest.js +811 -0
  174. data/src/xslt/ajaxslt-0.8.1/xpath_unittest.html +39 -0
  175. data/src/xslt/ajaxslt-0.8.1/xpath_unittest.js +557 -0
  176. data/src/xslt/ajaxslt-0.8.1/xpathdebug.js +234 -0
  177. data/src/xslt/ajaxslt-0.8.1/xslt_unittest.html +138 -0
  178. data/src/xslt/ajaxslt-0.8.1/xslt_unittest.js +68 -0
  179. data/src/xslt/implementation.js +625 -0
  180. data/src/xslt/processor.js +37 -0
  181. data/src/xslt/util.js +449 -0
  182. data/test/foo.html +8 -0
  183. data/test/foo.js +40 -0
  184. data/test/jquery.js +6002 -0
  185. data/test/x.js +1 -0
  186. data/test/y.js +1 -0
  187. metadata +245 -14
@@ -0,0 +1,402 @@
1
+
2
+
3
+ var $profile = window.$profile = {};
4
+
5
+
6
+ var __profile__ = function(id, invocation){
7
+ var start = new Date().getTime();
8
+ var retval = invocation.proceed();
9
+ var finish = new Date().getTime();
10
+ $profile[id] = $profile[id] ? $profile[id] : {};
11
+ $profile[id].callCount = $profile[id].callCount !== undefined ?
12
+ $profile[id].callCount+1 : 0;
13
+ $profile[id].times = $profile[id].times ? $profile[id].times : [];
14
+ $profile[id].times[$profile[id].callCount++] = (finish-start);
15
+ return retval;
16
+ };
17
+
18
+
19
+ window.$profiler.stats = function(raw){
20
+ var max = 0,
21
+ avg = -1,
22
+ min = 10000000,
23
+ own = 0;
24
+ for(var i = 0;i<raw.length;i++){
25
+ if(raw[i] > 0){
26
+ own += raw[i];
27
+ };
28
+ if(raw[i] > max){
29
+ max = raw[i];
30
+ }
31
+ if(raw[i] < min){
32
+ min = raw[i];
33
+ }
34
+ }
35
+ avg = Math.floor(own/raw.length);
36
+ return {
37
+ min: min,
38
+ max: max,
39
+ avg: avg,
40
+ own: own
41
+ };
42
+ };
43
+
44
+ if($env.profile){
45
+ /**
46
+ * CSS2Properties
47
+ */
48
+ window.$profiler.around({ target: CSS2Properties, method:"getPropertyCSSValue"}, function(invocation) {
49
+ return __profile__("CSS2Properties.getPropertyCSSValue", invocation);
50
+ });
51
+ window.$profiler.around({ target: CSS2Properties, method:"getPropertyPriority"}, function(invocation) {
52
+ return __profile__("CSS2Properties.getPropertyPriority", invocation);
53
+ });
54
+ window.$profiler.around({ target: CSS2Properties, method:"getPropertyValue"}, function(invocation) {
55
+ return __profile__("CSS2Properties.getPropertyValue", invocation);
56
+ });
57
+ window.$profiler.around({ target: CSS2Properties, method:"item"}, function(invocation) {
58
+ return __profile__("CSS2Properties.item", invocation);
59
+ });
60
+ window.$profiler.around({ target: CSS2Properties, method:"removeProperty"}, function(invocation) {
61
+ return __profile__("CSS2Properties.removeProperty", invocation);
62
+ });
63
+ window.$profiler.around({ target: CSS2Properties, method:"setProperty"}, function(invocation) {
64
+ return __profile__("CSS2Properties.setProperty", invocation);
65
+ });
66
+ window.$profiler.around({ target: CSS2Properties, method:"toString"}, function(invocation) {
67
+ return __profile__("CSS2Properties.toString", invocation);
68
+ });
69
+
70
+
71
+ /**
72
+ * DOMNode
73
+ */
74
+
75
+ window.$profiler.around({ target: DOMNode, method:"hasAttributes"}, function(invocation) {
76
+ return __profile__("DOMNode.hasAttributes", invocation);
77
+ });
78
+ window.$profiler.around({ target: DOMNode, method:"insertBefore"}, function(invocation) {
79
+ return __profile__("DOMNode.insertBefore", invocation);
80
+ });
81
+ window.$profiler.around({ target: DOMNode, method:"replaceChild"}, function(invocation) {
82
+ return __profile__("DOMNode.replaceChild", invocation);
83
+ });
84
+ window.$profiler.around({ target: DOMNode, method:"removeChild"}, function(invocation) {
85
+ return __profile__("DOMNode.removeChild", invocation);
86
+ });
87
+ window.$profiler.around({ target: DOMNode, method:"replaceChild"}, function(invocation) {
88
+ return __profile__("DOMNode.replaceChild", invocation);
89
+ });
90
+ window.$profiler.around({ target: DOMNode, method:"appendChild"}, function(invocation) {
91
+ return __profile__("DOMNode.appendChild", invocation);
92
+ });
93
+ window.$profiler.around({ target: DOMNode, method:"hasChildNodes"}, function(invocation) {
94
+ return __profile__("DOMNode.hasChildNodes", invocation);
95
+ });
96
+ window.$profiler.around({ target: DOMNode, method:"cloneNode"}, function(invocation) {
97
+ return __profile__("DOMNode.cloneNode", invocation);
98
+ });
99
+ window.$profiler.around({ target: DOMNode, method:"normalize"}, function(invocation) {
100
+ return __profile__("DOMNode.normalize", invocation);
101
+ });
102
+ window.$profiler.around({ target: DOMNode, method:"isSupported"}, function(invocation) {
103
+ return __profile__("DOMNode.isSupported", invocation);
104
+ });
105
+ window.$profiler.around({ target: DOMNode, method:"getElementsByTagName"}, function(invocation) {
106
+ return __profile__("DOMNode.getElementsByTagName", invocation);
107
+ });
108
+ window.$profiler.around({ target: DOMNode, method:"getElementsByTagNameNS"}, function(invocation) {
109
+ return __profile__("DOMNode.getElementsByTagNameNS", invocation);
110
+ });
111
+ window.$profiler.around({ target: DOMNode, method:"importNode"}, function(invocation) {
112
+ return __profile__("DOMNode.importNode", invocation);
113
+ });
114
+ window.$profiler.around({ target: DOMNode, method:"contains"}, function(invocation) {
115
+ return __profile__("DOMNode.contains", invocation);
116
+ });
117
+ window.$profiler.around({ target: DOMNode, method:"compareDocumentPosition"}, function(invocation) {
118
+ return __profile__("DOMNode.compareDocumentPosition", invocation);
119
+ });
120
+
121
+
122
+ /**
123
+ * DOMDocument
124
+ */
125
+ window.$profiler.around({ target: DOMDocument, method:"addEventListener"}, function(invocation) {
126
+ return __profile__("DOMDocument.addEventListener", invocation);
127
+ });
128
+ window.$profiler.around({ target: DOMDocument, method:"removeEventListener"}, function(invocation) {
129
+ return __profile__("DOMDocument.removeEventListener", invocation);
130
+ });
131
+ window.$profiler.around({ target: DOMDocument, method:"attachEvent"}, function(invocation) {
132
+ return __profile__("DOMDocument.attachEvent", invocation);
133
+ });
134
+ window.$profiler.around({ target: DOMDocument, method:"detachEvent"}, function(invocation) {
135
+ return __profile__("DOMDocument.detachEvent", invocation);
136
+ });
137
+ window.$profiler.around({ target: DOMDocument, method:"dispatchEvent"}, function(invocation) {
138
+ return __profile__("DOMDocument.dispatchEvent", invocation);
139
+ });
140
+ window.$profiler.around({ target: DOMDocument, method:"loadXML"}, function(invocation) {
141
+ return __profile__("DOMDocument.loadXML", invocation);
142
+ });
143
+ window.$profiler.around({ target: DOMDocument, method:"load"}, function(invocation) {
144
+ return __profile__("DOMDocument.load", invocation);
145
+ });
146
+ window.$profiler.around({ target: DOMDocument, method:"createEvent"}, function(invocation) {
147
+ return __profile__("DOMDocument.createEvent", invocation);
148
+ });
149
+ window.$profiler.around({ target: DOMDocument, method:"createExpression"}, function(invocation) {
150
+ return __profile__("DOMDocument.createExpression", invocation);
151
+ });
152
+ window.$profiler.around({ target: DOMDocument, method:"createElement"}, function(invocation) {
153
+ return __profile__("DOMDocument.createElement", invocation);
154
+ });
155
+ window.$profiler.around({ target: DOMDocument, method:"createDocumentFragment"}, function(invocation) {
156
+ return __profile__("DOMDocument.createDocumentFragment", invocation);
157
+ });
158
+ window.$profiler.around({ target: DOMDocument, method:"createTextNode"}, function(invocation) {
159
+ return __profile__("DOMDocument.createTextNode", invocation);
160
+ });
161
+ window.$profiler.around({ target: DOMDocument, method:"createComment"}, function(invocation) {
162
+ return __profile__("DOMDocument.createComment", invocation);
163
+ });
164
+ window.$profiler.around({ target: DOMDocument, method:"createCDATASection"}, function(invocation) {
165
+ return __profile__("DOMDocument.createCDATASection", invocation);
166
+ });
167
+ window.$profiler.around({ target: DOMDocument, method:"createProcessingInstruction"}, function(invocation) {
168
+ return __profile__("DOMDocument.createProcessingInstruction", invocation);
169
+ });
170
+ window.$profiler.around({ target: DOMDocument, method:"createAttribute"}, function(invocation) {
171
+ return __profile__("DOMDocument.createAttribute", invocation);
172
+ });
173
+ window.$profiler.around({ target: DOMDocument, method:"createElementNS"}, function(invocation) {
174
+ return __profile__("DOMDocument.createElementNS", invocation);
175
+ });
176
+ window.$profiler.around({ target: DOMDocument, method:"createAttributeNS"}, function(invocation) {
177
+ return __profile__("DOMDocument.createAttributeNS", invocation);
178
+ });
179
+ window.$profiler.around({ target: DOMDocument, method:"createNamespace"}, function(invocation) {
180
+ return __profile__("DOMDocument.createNamespace", invocation);
181
+ });
182
+ window.$profiler.around({ target: DOMDocument, method:"getElementById"}, function(invocation) {
183
+ return __profile__("DOMDocument.getElementById", invocation);
184
+ });
185
+ window.$profiler.around({ target: DOMDocument, method:"normalizeDocument"}, function(invocation) {
186
+ return __profile__("DOMDocument.normalizeDocument", invocation);
187
+ });
188
+
189
+
190
+ /**
191
+ * HTMLDocument
192
+ */
193
+ window.$profiler.around({ target: HTMLDocument, method:"createElement"}, function(invocation) {
194
+ return __profile__("HTMLDocument.createElement", invocation);
195
+ });
196
+
197
+ /**
198
+ * DOMParser
199
+ */
200
+ window.$profiler.around({ target: DOMParser, method:"parseFromString"}, function(invocation) {
201
+ return __profile__("DOMParser.parseFromString", invocation);
202
+ });
203
+
204
+ /**
205
+ * DOMNodeList
206
+ */
207
+ window.$profiler.around({ target: DOMNodeList, method:"item"}, function(invocation) {
208
+ return __profile__("DOMNode.item", invocation);
209
+ });
210
+ window.$profiler.around({ target: DOMNodeList, method:"toString"}, function(invocation) {
211
+ return __profile__("DOMNode.toString", invocation);
212
+ });
213
+
214
+ /**
215
+ * XMLP
216
+ */
217
+ window.$profiler.around({ target: XMLP, method:"_addAttribute"}, function(invocation) {
218
+ return __profile__("XMLP._addAttribute", invocation);
219
+ });
220
+ window.$profiler.around({ target: XMLP, method:"_checkStructure"}, function(invocation) {
221
+ return __profile__("XMLP._checkStructure", invocation);
222
+ });
223
+ window.$profiler.around({ target: XMLP, method:"_clearAttributes"}, function(invocation) {
224
+ return __profile__("XMLP._clearAttributes", invocation);
225
+ });
226
+ window.$profiler.around({ target: XMLP, method:"_findAttributeIndex"}, function(invocation) {
227
+ return __profile__("XMLP._findAttributeIndex", invocation);
228
+ });
229
+ window.$profiler.around({ target: XMLP, method:"getAttributeCount"}, function(invocation) {
230
+ return __profile__("XMLP.getAttributeCount", invocation);
231
+ });
232
+ window.$profiler.around({ target: XMLP, method:"getAttributeName"}, function(invocation) {
233
+ return __profile__("XMLP.getAttributeName", invocation);
234
+ });
235
+ window.$profiler.around({ target: XMLP, method:"getAttributeValue"}, function(invocation) {
236
+ return __profile__("XMLP.getAttributeValue", invocation);
237
+ });
238
+ window.$profiler.around({ target: XMLP, method:"getAttributeValueByName"}, function(invocation) {
239
+ return __profile__("XMLP.getAttributeValueByName", invocation);
240
+ });
241
+ window.$profiler.around({ target: XMLP, method:"getColumnNumber"}, function(invocation) {
242
+ return __profile__("XMLP.getColumnNumber", invocation);
243
+ });
244
+ window.$profiler.around({ target: XMLP, method:"getContentBegin"}, function(invocation) {
245
+ return __profile__("XMLP.getContentBegin", invocation);
246
+ });
247
+ window.$profiler.around({ target: XMLP, method:"getContentEnd"}, function(invocation) {
248
+ return __profile__("XMLP.getContentEnd", invocation);
249
+ });
250
+ window.$profiler.around({ target: XMLP, method:"getLineNumber"}, function(invocation) {
251
+ return __profile__("XMLP.getLineNumber", invocation);
252
+ });
253
+ window.$profiler.around({ target: XMLP, method:"getName"}, function(invocation) {
254
+ return __profile__("XMLP.getName", invocation);
255
+ });
256
+ window.$profiler.around({ target: XMLP, method:"next"}, function(invocation) {
257
+ return __profile__("XMLP.next", invocation);
258
+ });
259
+ window.$profiler.around({ target: XMLP, method:"_parse"}, function(invocation) {
260
+ return __profile__("XMLP._parse", invocation);
261
+ });
262
+ window.$profiler.around({ target: XMLP, method:"_parse"}, function(invocation) {
263
+ return __profile__("XMLP._parse", invocation);
264
+ });
265
+ window.$profiler.around({ target: XMLP, method:"_parseAttribute"}, function(invocation) {
266
+ return __profile__("XMLP._parseAttribute", invocation);
267
+ });
268
+ window.$profiler.around({ target: XMLP, method:"_parseCDATA"}, function(invocation) {
269
+ return __profile__("XMLP._parseCDATA", invocation);
270
+ });
271
+ window.$profiler.around({ target: XMLP, method:"_parseComment"}, function(invocation) {
272
+ return __profile__("XMLP._parseComment", invocation);
273
+ });
274
+ window.$profiler.around({ target: XMLP, method:"_parseDTD"}, function(invocation) {
275
+ return __profile__("XMLP._parseDTD", invocation);
276
+ });
277
+ window.$profiler.around({ target: XMLP, method:"_parseElement"}, function(invocation) {
278
+ return __profile__("XMLP._parseElement", invocation);
279
+ });
280
+ window.$profiler.around({ target: XMLP, method:"_parseEntity"}, function(invocation) {
281
+ return __profile__("XMLP._parseEntity", invocation);
282
+ });
283
+ window.$profiler.around({ target: XMLP, method:"_parsePI"}, function(invocation) {
284
+ return __profile__("XMLP._parsePI", invocation);
285
+ });
286
+ window.$profiler.around({ target: XMLP, method:"_parseText"}, function(invocation) {
287
+ return __profile__("XMLP._parseText", invocation);
288
+ });
289
+ window.$profiler.around({ target: XMLP, method:"_replaceEntities"}, function(invocation) {
290
+ return __profile__("XMLP._replaceEntities", invocation);
291
+ });
292
+ window.$profiler.around({ target: XMLP, method:"_replaceEntity"}, function(invocation) {
293
+ return __profile__("XMLP._replaceEntity", invocation);
294
+ });
295
+ window.$profiler.around({ target: XMLP, method:"_setContent"}, function(invocation) {
296
+ return __profile__("XMLP._setContent", invocation);
297
+ });
298
+ window.$profiler.around({ target: XMLP, method:"_setErr"}, function(invocation) {
299
+ return __profile__("XMLP._setErr", invocation);
300
+ });
301
+
302
+
303
+ /**
304
+ * SAXDriver
305
+ */
306
+ window.$profiler.around({ target: SAXDriver, method:"parse"}, function(invocation) {
307
+ return __profile__("SAXDriver.parse", invocation);
308
+ });
309
+ window.$profiler.around({ target: SAXDriver, method:"setDocumentHandler"}, function(invocation) {
310
+ return __profile__("SAXDriver.setDocumentHandler", invocation);
311
+ });
312
+ window.$profiler.around({ target: SAXDriver, method:"setErrorHandler"}, function(invocation) {
313
+ return __profile__("SAXDriver.setErrorHandler", invocation);
314
+ });
315
+ window.$profiler.around({ target: SAXDriver, method:"setLexicalHandler"}, function(invocation) {
316
+ return __profile__("SAXDriver.setLexicalHandler", invocation);
317
+ });
318
+ window.$profiler.around({ target: SAXDriver, method:"getColumnNumber"}, function(invocation) {
319
+ return __profile__("SAXDriver.getColumnNumber", invocation);
320
+ });
321
+ window.$profiler.around({ target: SAXDriver, method:"getLineNumber"}, function(invocation) {
322
+ return __profile__("SAXDriver.getLineNumber", invocation);
323
+ });
324
+ window.$profiler.around({ target: SAXDriver, method:"getMessage"}, function(invocation) {
325
+ return __profile__("SAXDriver.getMessage", invocation);
326
+ });
327
+ window.$profiler.around({ target: SAXDriver, method:"getPublicId"}, function(invocation) {
328
+ return __profile__("SAXDriver.getPublicId", invocation);
329
+ });
330
+ window.$profiler.around({ target: SAXDriver, method:"getSystemId"}, function(invocation) {
331
+ return __profile__("SAXDriver.getSystemId", invocation);
332
+ });
333
+ window.$profiler.around({ target: SAXDriver, method:"getLength"}, function(invocation) {
334
+ return __profile__("SAXDriver.getLength", invocation);
335
+ });
336
+ window.$profiler.around({ target: SAXDriver, method:"getName"}, function(invocation) {
337
+ return __profile__("SAXDriver.getName", invocation);
338
+ });
339
+ window.$profiler.around({ target: SAXDriver, method:"getValue"}, function(invocation) {
340
+ return __profile__("SAXDriver.getValue", invocation);
341
+ });
342
+ window.$profiler.around({ target: SAXDriver, method:"getValueByName"}, function(invocation) {
343
+ return __profile__("SAXDriver.getValueByName", invocation);
344
+ });
345
+ window.$profiler.around({ target: SAXDriver, method:"_fireError"}, function(invocation) {
346
+ return __profile__("SAXDriver._fireError", invocation);
347
+ });
348
+ window.$profiler.around({ target: SAXDriver, method:"_fireEvent"}, function(invocation) {
349
+ return __profile__("SAXDriver._fireEvent", invocation);
350
+ });
351
+ window.$profiler.around({ target: SAXDriver, method:"_parseLoop"}, function(invocation) {
352
+ return __profile__("SAXDriver._parseLoop", invocation);
353
+ });
354
+
355
+ /**
356
+ * SAXStrings
357
+ */
358
+ window.$profiler.around({ target: SAXStrings, method:"getColumnNumber"}, function(invocation) {
359
+ return __profile__("SAXStrings.getColumnNumber", invocation);
360
+ });
361
+ window.$profiler.around({ target: SAXStrings, method:"getLineNumber"}, function(invocation) {
362
+ return __profile__("SAXStrings.getLineNumber", invocation);
363
+ });
364
+ window.$profiler.around({ target: SAXStrings, method:"indexOfNonWhitespace"}, function(invocation) {
365
+ return __profile__("SAXStrings.indexOfNonWhitespace", invocation);
366
+ });
367
+ window.$profiler.around({ target: SAXStrings, method:"indexOfWhitespace"}, function(invocation) {
368
+ return __profile__("SAXStrings.indexOfWhitespace", invocation);
369
+ });
370
+ window.$profiler.around({ target: SAXStrings, method:"isEmpty"}, function(invocation) {
371
+ return __profile__("SAXStrings.isEmpty", invocation);
372
+ });
373
+ window.$profiler.around({ target: SAXStrings, method:"lastIndexOfNonWhitespace"}, function(invocation) {
374
+ return __profile__("SAXStrings.lastIndexOfNonWhitespace", invocation);
375
+ });
376
+ window.$profiler.around({ target: SAXStrings, method:"replace"}, function(invocation) {
377
+ return __profile__("SAXStrings.replace", invocation);
378
+ });
379
+
380
+ /**
381
+ * Stack - SAX Utility
382
+ window.$profiler.around({ target: Stack, method:"clear"}, function(invocation) {
383
+ return __profile__("Stack.clear", invocation);
384
+ });
385
+ window.$profiler.around({ target: Stack, method:"count"}, function(invocation) {
386
+ return __profile__("Stack.count", invocation);
387
+ });
388
+ window.$profiler.around({ target: Stack, method:"destroy"}, function(invocation) {
389
+ return __profile__("Stack.destroy", invocation);
390
+ });
391
+ window.$profiler.around({ target: Stack, method:"peek"}, function(invocation) {
392
+ return __profile__("Stack.peek", invocation);
393
+ });
394
+ window.$profiler.around({ target: Stack, method:"pop"}, function(invocation) {
395
+ return __profile__("Stack.pop", invocation);
396
+ });
397
+ window.$profiler.around({ target: Stack, method:"push"}, function(invocation) {
398
+ return __profile__("Stack.push", invocation);
399
+ });
400
+ */
401
+ }
402
+
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @author thatcher
3
+ */
4
+ $debug("Defining XMLSerializer");
5
+ /*
6
+ * XMLSerializer
7
+ */
8
+ /*
9
+ $w.__defineGetter__("XMLSerializer", function(){
10
+ return new XMLSerializer(arguments);
11
+ });
12
+ */
13
+
14
+ var XMLSerializer = function() {
15
+
16
+ };
17
+ __extend__(XMLSerializer.prototype, {
18
+ serializeToString: function(node){
19
+ return node.xml;
20
+ }
21
+ });
@@ -0,0 +1,25 @@
1
+ $debug("Defining SVGAnimatedString");
2
+ var SVGAnimatedString = function() {
3
+ this.__baseVal__ = "";
4
+ };
5
+
6
+ __extend__(SVGAnimatedString.prototype, {
7
+ get baseVal() {
8
+ return this.__baseVal__;
9
+ },
10
+ set baseVal(v) {
11
+ this.__baseVal__ = v;
12
+ this.__callback__ && this.__callback__(v);
13
+ },
14
+ toString : function(){
15
+ return "SVGAnimatedString "+this.baseVal;
16
+ }
17
+ });
18
+
19
+ // $w.SVGAnimatedString = SVGAnimatedString;
20
+
21
+ // Local Variables:
22
+ // espresso-indent-level:4
23
+ // c-basic-offset:4
24
+ // tab-width:4
25
+ // End: