|
525
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html lang="en"> |
|
|
3 |
<head> |
|
|
4 |
<meta charset="utf-8"> |
|
|
5 |
<title>Example: Read-Only and Write-Once Attributes</title> |
|
|
6 |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic"> |
|
|
7 |
<link rel="stylesheet" href="../../build/cssgrids/cssgrids-min.css"> |
|
|
8 |
<link rel="stylesheet" href="../assets/css/main.css"> |
|
|
9 |
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
|
|
10 |
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> |
|
|
11 |
<script src="../../build/yui/yui-min.js"></script> |
|
|
12 |
|
|
|
13 |
</head> |
|
|
14 |
<body> |
|
|
15 |
<!-- |
|
|
16 |
<a href="https://github.com/yui/yui3"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> |
|
|
17 |
--> |
|
|
18 |
<div id="doc"> |
|
|
19 |
<div id="hd"> |
|
|
20 |
<h1><img src="http://yuilibrary.com/img/yui-logo.png"></h1> |
|
|
21 |
</div> |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
<h1>Example: Read-Only and Write-Once Attributes</h1> |
|
|
25 |
<div class="yui3-g"> |
|
|
26 |
<div class="yui3-u-3-4"> |
|
|
27 |
<div id="main"> |
|
|
28 |
<div class="content"><style type="text/css" scoped> |
|
|
29 |
.example-out .myclass-attrs { |
|
|
30 |
font-family:courier; |
|
|
31 |
margin-top:2px; |
|
|
32 |
} |
|
|
33 |
|
|
|
34 |
.example-out .myclass-title { |
|
|
35 |
font-weight:bold; |
|
|
36 |
font-family:arial; |
|
|
37 |
color:#8dd5e7; |
|
|
38 |
margin-top:5px; |
|
|
39 |
margin-bottom:3px; |
|
|
40 |
} |
|
|
41 |
|
|
|
42 |
.example-out { |
|
|
43 |
overflow:auto; |
|
|
44 |
border:1px solid #000; |
|
|
45 |
color:#ffffff; |
|
|
46 |
background-color:#004C6D; |
|
|
47 |
margin-top:5px; |
|
|
48 |
margin-bottom:20px; |
|
|
49 |
height:8em; |
|
|
50 |
padding:2px 2px 2px 5px; |
|
|
51 |
} |
|
|
52 |
|
|
|
53 |
#writeInitial label, #writeAgain label, #writeInternally label { |
|
|
54 |
font-weight:900; |
|
|
55 |
} |
|
|
56 |
|
|
|
57 |
#writeInitial .fooVal, #writeAgain .fooVal, #writeInternally .fooVal { |
|
|
58 |
width:9em; |
|
|
59 |
} |
|
|
60 |
|
|
|
61 |
#writeInitial .barVal, #writeAgain .barVal, #writeInternally .barVal { |
|
|
62 |
width:9em; |
|
|
63 |
} |
|
|
64 |
|
|
|
65 |
#writeInitial p, #writeAgain p, #writeInternally p { |
|
|
66 |
margin-top:0.2em; |
|
|
67 |
margin-bottom:0.2em; |
|
|
68 |
color:#004C6D; |
|
|
69 |
font-size:108%; |
|
|
70 |
} |
|
|
71 |
</style> |
|
|
72 |
|
|
|
73 |
<div class="intro"> |
|
|
74 |
<p>Attributes can be configured to be <code>readOnly</code>, stopping them from being modified by the end user, or <code>writeOnce</code> allowing them to be set by the end user, but only once. This example demonstrates how to setup attributes for your class as <code>readOnly</code> or <code>writeOnce</code> attributes, and shows how their behavior differs when the end user attempts to set their values.</p> |
|
|
75 |
</div> |
|
|
76 |
|
|
|
77 |
<div class="example"> |
|
|
78 |
<form id="writeInitial" action="#"> |
|
|
79 |
<p>Construct o1, setting initial values for both foo and bar in the constructor: </p> |
|
|
80 |
<label>foo: <input type="text" value="Initial Foo" class="fooVal"></label> |
|
|
81 |
<label>bar: <input type="text" value="Initial Bar" class="barVal"></label> |
|
|
82 |
<button type="submit" class="do">Initial Values</button> |
|
|
83 |
<div class="example-out"></div> |
|
|
84 |
</form> |
|
|
85 |
<form id="writeAgain" action="#"> |
|
|
86 |
<p>Try setting values again, after they've been set once: </p> |
|
|
87 |
<label>foo: <input type="text" value="Set Foo Again" class="fooVal"></label> |
|
|
88 |
<label>bar: <input type="text" value="Set Bar Again" class="barVal"></label> |
|
|
89 |
<button type="submit" class="do">Set Again</button> |
|
|
90 |
<div class="example-out"></div> |
|
|
91 |
</form> |
|
|
92 |
<form id="writeInternally" action="#"> |
|
|
93 |
<p>Call a MyClass method, which sets foo internally (using _set): </p> |
|
|
94 |
<label>foo: <input type="text" value="Set Foo Internally" class="fooVal"></label> |
|
|
95 |
<button type="submit" class="do">Set Internal</button> |
|
|
96 |
<div class="example-out"></div> |
|
|
97 |
</form> |
|
|
98 |
|
|
|
99 |
<script type="text/javascript"> |
|
|
100 |
YUI().use("node", "attribute", "escape", function(Y) { |
|
|
101 |
|
|
|
102 |
// Setup a custom class with attribute support |
|
|
103 |
function MyClass(cfg) { |
|
|
104 |
|
|
|
105 |
var attrs = { |
|
|
106 |
"foo" : { |
|
|
107 |
value: "Default Foo", |
|
|
108 |
readOnly: true |
|
|
109 |
}, |
|
|
110 |
|
|
|
111 |
"bar" : { |
|
|
112 |
value: "Default Bar", |
|
|
113 |
writeOnce: true |
|
|
114 |
} |
|
|
115 |
} |
|
|
116 |
|
|
|
117 |
this.addAttrs(attrs, cfg); |
|
|
118 |
} |
|
|
119 |
|
|
|
120 |
MyClass.prototype.doSomething = function(val) { |
|
|
121 |
// ... Do something which requires |
|
|
122 |
// MyClass to change the value |
|
|
123 |
// of foo ... |
|
|
124 |
|
|
|
125 |
// Host code can reset value of |
|
|
126 |
// readOnly attributes interally, |
|
|
127 |
// by working with the private _set |
|
|
128 |
// property |
|
|
129 |
|
|
|
130 |
this._set("foo", val); |
|
|
131 |
}; |
|
|
132 |
|
|
|
133 |
Y.augment(MyClass, Y.Attribute); |
|
|
134 |
|
|
|
135 |
function displayValues(o, title, node) { |
|
|
136 |
var str = |
|
|
137 |
'<div class="myclass"><div class="myclass-title">' |
|
|
138 |
+ title + |
|
|
139 |
'</div><ul class="myclass-attrs"><li>foo (readOnly): ' |
|
|
140 |
+ Y.Escape.html(o.get("foo")) |
|
|
141 |
+ '</li><li>bar (writeOnce): ' |
|
|
142 |
+ Y.Escape.html(o.get("bar")) |
|
|
143 |
+ '</li></ul></div>'; |
|
|
144 |
|
|
|
145 |
Y.one(node).set("innerHTML", str); |
|
|
146 |
} |
|
|
147 |
|
|
|
148 |
var o1; |
|
|
149 |
|
|
|
150 |
Y.on("submit", function(e) { |
|
|
151 |
|
|
|
152 |
e.preventDefault(); |
|
|
153 |
|
|
|
154 |
var fooVal = Y.one("#writeInitial .fooVal").get("value"); |
|
|
155 |
var barVal = Y.one("#writeInitial .barVal").get("value"); |
|
|
156 |
|
|
|
157 |
o1 = new MyClass({ |
|
|
158 |
foo: fooVal, |
|
|
159 |
bar: barVal |
|
|
160 |
}); |
|
|
161 |
|
|
|
162 |
displayValues(o1, "Attempt to set initial values in constructor", "#writeInitial .example-out"); |
|
|
163 |
|
|
|
164 |
}, "#writeInitial"); |
|
|
165 |
|
|
|
166 |
Y.on("submit", function(e) { |
|
|
167 |
|
|
|
168 |
e.preventDefault(); |
|
|
169 |
|
|
|
170 |
if (o1) { |
|
|
171 |
var fooVal = Y.one("#writeAgain .fooVal").get("value"); |
|
|
172 |
var barVal = Y.one("#writeAgain .barVal").get("value"); |
|
|
173 |
|
|
|
174 |
// Attempt to reset values: |
|
|
175 |
o1.set("foo", fooVal); |
|
|
176 |
o1.set("bar", barVal); |
|
|
177 |
|
|
|
178 |
displayValues(o1, "Attempt to set values again, using set", "#writeAgain .example-out"); |
|
|
179 |
} |
|
|
180 |
|
|
|
181 |
}, "#writeAgain"); |
|
|
182 |
|
|
|
183 |
Y.on("submit", function(e) { |
|
|
184 |
|
|
|
185 |
e.preventDefault(); |
|
|
186 |
|
|
|
187 |
if (o1) { |
|
|
188 |
var val = Y.one("#writeInternally .fooVal").get("value"); |
|
|
189 |
// Call method, which sets foo internally... |
|
|
190 |
o1.doSomething(val); |
|
|
191 |
|
|
|
192 |
displayValues(o1, "Set the value of foo (readOnly) internally", "#writeInternally .example-out"); |
|
|
193 |
} |
|
|
194 |
|
|
|
195 |
}, "#writeInternally"); |
|
|
196 |
}); |
|
|
197 |
</script> |
|
|
198 |
|
|
|
199 |
</div> |
|
|
200 |
|
|
|
201 |
<h2>ReadOnly And WriteOnce</h2> |
|
|
202 |
|
|
|
203 |
<p>Attribute supports the ability to configure attributes to be <code>readOnly</code> or <code>writeOnce</code>. <code>readOnly</code> attributes cannot be set by the end user, either through initial values passed to the constructor, or by invoking the <code>set</code> method. <code>writeOnce</code> attributes on the other hand, can be set by the user, but only once, either during initialization or through a call to <code>set</code>. Once a value is established for a <code>writeOnce</code> attribute, it cannot be reset to another value by the user.</p> |
|
|
204 |
|
|
|
205 |
<h2>Configuring ReadOnly And WriteOnce Attributes</h2> |
|
|
206 |
|
|
|
207 |
<p>This example sets up a custom class, <code>MyClass</code>, with two attributes, <code>foo</code> and <code>bar</code>. <code>foo</code> is configured to be a <code>readOnly</code> attribute, and <code>bar</code> is configured to be a <code>writeOnce</code> attribute:</p> |
|
|
208 |
|
|
|
209 |
<pre class="code prettyprint">// Setup a custom class with attribute support |
|
|
210 |
function MyClass(cfg) { |
|
|
211 |
|
|
|
212 |
// Attribute configuration |
|
|
213 |
var attrs = { |
|
|
214 |
"foo" : { |
|
|
215 |
value: "Default Foo", |
|
|
216 |
readOnly: true |
|
|
217 |
}, |
|
|
218 |
|
|
|
219 |
"bar" : { |
|
|
220 |
value: "Default Bar", |
|
|
221 |
writeOnce: true |
|
|
222 |
} |
|
|
223 |
} |
|
|
224 |
|
|
|
225 |
this.addAttrs(attrs, cfg); |
|
|
226 |
}</pre> |
|
|
227 |
|
|
|
228 |
|
|
|
229 |
<h2>Attempting To Set Values</h2> |
|
|
230 |
|
|
|
231 |
<p>We first attempt to set values for both attributes in the constructor (used to intialize the attributes) and see that only <code>bar</code>, the <code>writeOnce</code> attribute, gets set to the user provided value:</p> |
|
|
232 |
|
|
|
233 |
<pre class="code prettyprint">var fooVal = Y.one("#writeInitial .fooVal").get("value"); |
|
|
234 |
var barVal = Y.one("#writeInitial .barVal").get("value"); |
|
|
235 |
|
|
|
236 |
o1 = new MyClass({ |
|
|
237 |
foo: fooVal, |
|
|
238 |
bar: barVal |
|
|
239 |
}); |
|
|
240 |
|
|
|
241 |
displayValues(o1, "Attempt to set initial values in constructor", |
|
|
242 |
"#writeInitial .example-out");</pre> |
|
|
243 |
|
|
|
244 |
|
|
|
245 |
<p>We then attempt to set values for both attributes again, using <code>set</code>, and see that niether of the values are modified:</p> |
|
|
246 |
|
|
|
247 |
<pre class="code prettyprint">var fooVal = Y.one("#writeAgain .fooVal").get("value"); |
|
|
248 |
var barVal = Y.one("#writeAgain .barVal").get("value"); |
|
|
249 |
|
|
|
250 |
// Attempt to reset values: |
|
|
251 |
o1.set("foo", fooVal); |
|
|
252 |
o1.set("bar", barVal); |
|
|
253 |
|
|
|
254 |
displayValues(o1, "Attempt to set values again, using set", |
|
|
255 |
"#writeAgain .example-out");</pre> |
|
|
256 |
|
|
|
257 |
|
|
|
258 |
<h2>Setting The State Of ReadOnly Values Internally</h2> |
|
|
259 |
|
|
|
260 |
<p>Although the user cannot update the value of <code>readOnly</code> attributes, it maybe neccessary for the host object to update it's value internally. The example shows how this can be done, using the private <code>_set</code> property on the host:</p> |
|
|
261 |
|
|
|
262 |
<pre class="code prettyprint">MyClass.prototype.doSomething = function(val) { |
|
|
263 |
// ... Do something which requires |
|
|
264 |
// MyClass to change the value |
|
|
265 |
// of foo ... |
|
|
266 |
|
|
|
267 |
// Host code can reset value of |
|
|
268 |
// readOnly attributes interally, |
|
|
269 |
// by working with the private _set |
|
|
270 |
// property |
|
|
271 |
|
|
|
272 |
this._set("foo", val); |
|
|
273 |
}; |
|
|
274 |
|
|
|
275 |
... |
|
|
276 |
|
|
|
277 |
var val = Y.one("#writeInternally .fooVal").get("value"); |
|
|
278 |
|
|
|
279 |
// Call method, which sets foo internally... |
|
|
280 |
o1.doSomething(val); |
|
|
281 |
|
|
|
282 |
displayValues(o1, "Set value of foo (readOnly) interally", |
|
|
283 |
"#writeInternally .example-out");</pre> |
|
|
284 |
|
|
|
285 |
|
|
|
286 |
|
|
|
287 |
<h2>Complete Example Source</h2> |
|
|
288 |
|
|
|
289 |
<pre class="code prettyprint"><form id="writeInitial" action="#"> |
|
|
290 |
<p>Construct o1, setting initial values for both foo and bar in the constructor: </p> |
|
|
291 |
<label>foo: <input type="text" value="Initial Foo" class="fooVal"></label> |
|
|
292 |
<label>bar: <input type="text" value="Initial Bar" class="barVal"></label> |
|
|
293 |
<button type="submit" class="do">Initial Values</button> |
|
|
294 |
<div class="example-out"></div> |
|
|
295 |
</form> |
|
|
296 |
<form id="writeAgain" action="#"> |
|
|
297 |
<p>Try setting values again, after they've been set once: </p> |
|
|
298 |
<label>foo: <input type="text" value="Set Foo Again" class="fooVal"></label> |
|
|
299 |
<label>bar: <input type="text" value="Set Bar Again" class="barVal"></label> |
|
|
300 |
<button type="submit" class="do">Set Again</button> |
|
|
301 |
<div class="example-out"></div> |
|
|
302 |
</form> |
|
|
303 |
<form id="writeInternally" action="#"> |
|
|
304 |
<p>Call a MyClass method, which sets foo internally (using _set): </p> |
|
|
305 |
<label>foo: <input type="text" value="Set Foo Internally" class="fooVal"></label> |
|
|
306 |
<button type="submit" class="do">Set Internal</button> |
|
|
307 |
<div class="example-out"></div> |
|
|
308 |
</form> |
|
|
309 |
|
|
|
310 |
<script type="text/javascript"> |
|
|
311 |
YUI().use("node", "attribute", "escape", function(Y) { |
|
|
312 |
|
|
|
313 |
// Setup a custom class with attribute support |
|
|
314 |
function MyClass(cfg) { |
|
|
315 |
|
|
|
316 |
var attrs = { |
|
|
317 |
"foo" : { |
|
|
318 |
value: "Default Foo", |
|
|
319 |
readOnly: true |
|
|
320 |
}, |
|
|
321 |
|
|
|
322 |
"bar" : { |
|
|
323 |
value: "Default Bar", |
|
|
324 |
writeOnce: true |
|
|
325 |
} |
|
|
326 |
} |
|
|
327 |
|
|
|
328 |
this.addAttrs(attrs, cfg); |
|
|
329 |
} |
|
|
330 |
|
|
|
331 |
MyClass.prototype.doSomething = function(val) { |
|
|
332 |
// ... Do something which requires |
|
|
333 |
// MyClass to change the value |
|
|
334 |
// of foo ... |
|
|
335 |
|
|
|
336 |
// Host code can reset value of |
|
|
337 |
// readOnly attributes interally, |
|
|
338 |
// by working with the private _set |
|
|
339 |
// property |
|
|
340 |
|
|
|
341 |
this._set("foo", val); |
|
|
342 |
}; |
|
|
343 |
|
|
|
344 |
Y.augment(MyClass, Y.Attribute); |
|
|
345 |
|
|
|
346 |
function displayValues(o, title, node) { |
|
|
347 |
var str = |
|
|
348 |
'<div class="myclass"><div class="myclass-title">' |
|
|
349 |
+ title + |
|
|
350 |
'</div><ul class="myclass-attrs"><li>foo (readOnly): ' |
|
|
351 |
+ Y.Escape.html(o.get("foo")) |
|
|
352 |
+ '</li><li>bar (writeOnce): ' |
|
|
353 |
+ Y.Escape.html(o.get("bar")) |
|
|
354 |
+ '</li></ul></div>'; |
|
|
355 |
|
|
|
356 |
Y.one(node).set("innerHTML", str); |
|
|
357 |
} |
|
|
358 |
|
|
|
359 |
var o1; |
|
|
360 |
|
|
|
361 |
Y.on("submit", function(e) { |
|
|
362 |
|
|
|
363 |
e.preventDefault(); |
|
|
364 |
|
|
|
365 |
var fooVal = Y.one("#writeInitial .fooVal").get("value"); |
|
|
366 |
var barVal = Y.one("#writeInitial .barVal").get("value"); |
|
|
367 |
|
|
|
368 |
o1 = new MyClass({ |
|
|
369 |
foo: fooVal, |
|
|
370 |
bar: barVal |
|
|
371 |
}); |
|
|
372 |
|
|
|
373 |
displayValues(o1, "Attempt to set initial values in constructor", "#writeInitial .example-out"); |
|
|
374 |
|
|
|
375 |
}, "#writeInitial"); |
|
|
376 |
|
|
|
377 |
Y.on("submit", function(e) { |
|
|
378 |
|
|
|
379 |
e.preventDefault(); |
|
|
380 |
|
|
|
381 |
if (o1) { |
|
|
382 |
var fooVal = Y.one("#writeAgain .fooVal").get("value"); |
|
|
383 |
var barVal = Y.one("#writeAgain .barVal").get("value"); |
|
|
384 |
|
|
|
385 |
// Attempt to reset values: |
|
|
386 |
o1.set("foo", fooVal); |
|
|
387 |
o1.set("bar", barVal); |
|
|
388 |
|
|
|
389 |
displayValues(o1, "Attempt to set values again, using set", "#writeAgain .example-out"); |
|
|
390 |
} |
|
|
391 |
|
|
|
392 |
}, "#writeAgain"); |
|
|
393 |
|
|
|
394 |
Y.on("submit", function(e) { |
|
|
395 |
|
|
|
396 |
e.preventDefault(); |
|
|
397 |
|
|
|
398 |
if (o1) { |
|
|
399 |
var val = Y.one("#writeInternally .fooVal").get("value"); |
|
|
400 |
// Call method, which sets foo internally... |
|
|
401 |
o1.doSomething(val); |
|
|
402 |
|
|
|
403 |
displayValues(o1, "Set the value of foo (readOnly) internally", "#writeInternally .example-out"); |
|
|
404 |
} |
|
|
405 |
|
|
|
406 |
}, "#writeInternally"); |
|
|
407 |
}); |
|
|
408 |
</script></pre> |
|
|
409 |
|
|
|
410 |
</div> |
|
|
411 |
</div> |
|
|
412 |
</div> |
|
|
413 |
|
|
|
414 |
<div class="yui3-u-1-4"> |
|
|
415 |
<div class="sidebar"> |
|
|
416 |
|
|
|
417 |
|
|
|
418 |
|
|
|
419 |
<div class="sidebox"> |
|
|
420 |
<div class="hd"> |
|
|
421 |
<h2 class="no-toc">Examples</h2> |
|
|
422 |
</div> |
|
|
423 |
|
|
|
424 |
<div class="bd"> |
|
|
425 |
<ul class="examples"> |
|
|
426 |
|
|
|
427 |
|
|
|
428 |
<li data-description="Use the Attribute API to define, set and get attribute values."> |
|
|
429 |
<a href="attribute-basic.html">Basic Attribute Configuration</a> |
|
|
430 |
</li> |
|
|
431 |
|
|
|
432 |
|
|
|
433 |
|
|
|
434 |
<li data-description="Configure attributes to be readOnly or writeOnce."> |
|
|
435 |
<a href="attribute-rw.html">Read-Only and Write-Once Attributes</a> |
|
|
436 |
</li> |
|
|
437 |
|
|
|
438 |
|
|
|
439 |
|
|
|
440 |
<li data-description="How to listen for changes in attribute values."> |
|
|
441 |
<a href="attribute-event.html">Attribute Change Events</a> |
|
|
442 |
</li> |
|
|
443 |
|
|
|
444 |
|
|
|
445 |
|
|
|
446 |
<li data-description="Create a basic SpeedDater class, with Attribute support."> |
|
|
447 |
<a href="attribute-basic-speeddate.html">Attribute Based Speed Dating</a> |
|
|
448 |
</li> |
|
|
449 |
|
|
|
450 |
|
|
|
451 |
|
|
|
452 |
<li data-description="Refactors the basic Speed Dating example, to use attribute change events to update rendered elements, and have two instances react to another."> |
|
|
453 |
<a href="attribute-event-speeddate.html">Attribute Event Based Speed Dating</a> |
|
|
454 |
</li> |
|
|
455 |
|
|
|
456 |
|
|
|
457 |
|
|
|
458 |
<li data-description="Add custom methods to get and set attribute values and provide validation support."> |
|
|
459 |
<a href="attribute-getset.html">Attribute Getters, Setters and Validators</a> |
|
|
460 |
</li> |
|
|
461 |
|
|
|
462 |
|
|
|
463 |
</ul> |
|
|
464 |
</div> |
|
|
465 |
</div> |
|
|
466 |
|
|
|
467 |
|
|
|
468 |
|
|
|
469 |
</div> |
|
|
470 |
</div> |
|
|
471 |
</div> |
|
|
472 |
</div> |
|
|
473 |
|
|
|
474 |
<script src="../assets/vendor/prettify/prettify-min.js"></script> |
|
|
475 |
<script>prettyPrint();</script> |
|
|
476 |
|
|
|
477 |
<script> |
|
|
478 |
YUI.Env.Tests = { |
|
|
479 |
examples: [], |
|
|
480 |
project: '../assets', |
|
|
481 |
assets: '../assets/attribute', |
|
|
482 |
name: 'attribute-rw', |
|
|
483 |
title: 'Read-Only and Write-Once Attributes', |
|
|
484 |
newWindow: '', |
|
|
485 |
auto: false |
|
|
486 |
}; |
|
|
487 |
YUI.Env.Tests.examples.push('attribute-basic'); |
|
|
488 |
YUI.Env.Tests.examples.push('attribute-rw'); |
|
|
489 |
YUI.Env.Tests.examples.push('attribute-event'); |
|
|
490 |
YUI.Env.Tests.examples.push('attribute-basic-speeddate'); |
|
|
491 |
YUI.Env.Tests.examples.push('attribute-event-speeddate'); |
|
|
492 |
YUI.Env.Tests.examples.push('attribute-getset'); |
|
|
493 |
|
|
|
494 |
</script> |
|
|
495 |
<script src="../assets/yui/test-runner.js"></script> |
|
|
496 |
|
|
|
497 |
|
|
|
498 |
|
|
|
499 |
</body> |
|
|
500 |
</html> |