~ted/lazr-js/annoying-debug-message

« back to all changes in this revision

Viewing changes to src-js/lazrjs/yui/widget/widget-child.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-09-09 14:20:30 UTC
  • mfrom: (182.1.3 yui-3.2)
  • Revision ID: launchpad@pqm.canonical.com-20100909142030-13w6vo0ixfysxc15
[r=beuno] Update lazr-js to yui-3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
3
Code licensed under the BSD License:
4
4
http://developer.yahoo.com/yui/license.html
5
 
version: 3.1.2
6
 
build: 56
 
5
version: 3.2.0
 
6
build: 2676
7
7
*/
8
8
YUI.add('widget-child', function(Y) {
9
9
 
193
193
    },
194
194
 
195
195
 
196
 
        /**
197
 
        * @method next
198
 
        * @description Returns the Widget's next sibling.
 
196
    /**
 
197
    * @method next
 
198
    * @description Returns the Widget's next sibling.
199
199
    * @param {Boolean} circular Boolean indicating if the parent's first child 
200
 
    * should be returned if the child has no next sibling.      
201
 
        * @return {Widget} Widget instance. 
202
 
        */
 
200
    * should be returned if the child has no next sibling.  
 
201
    * @return {Widget} Widget instance. 
 
202
    */
203
203
    next: function (circular) {
204
204
 
205
205
        var parent = this.get("parent"),
218
218
    },
219
219
 
220
220
 
221
 
        /**
 
221
    /**
222
222
    * @method previous
223
 
        * @description Returns the Widget's previous sibling.
 
223
    * @description Returns the Widget's previous sibling.
224
224
    * @param {Boolean} circular Boolean indicating if the parent's last child 
225
225
    * should be returned if the child has no previous sibling.
226
 
        * @return {Widget} Widget instance. 
227
 
        */
 
226
    * @return {Widget} Widget instance. 
 
227
    */
228
228
    previous: function (circular) {
229
229
 
230
230
        var parent = this.get("parent"),
269
269
    },
270
270
 
271
271
 
272
 
        /**
273
 
        * @method isRoot
274
 
        * @description Determines if the Widget is the root Widget in the 
275
 
        * object hierarchy.
276
 
        * @return {Boolean} Boolean indicating if Widget is the root Widget in the 
277
 
        * object hierarchy.
278
 
        */
 
272
    /**
 
273
    * @method isRoot
 
274
    * @description Determines if the Widget is the root Widget in the 
 
275
    * object hierarchy.
 
276
    * @return {Boolean} Boolean indicating if Widget is the root Widget in the 
 
277
    * object hierarchy.
 
278
    */
279
279
    isRoot: function () {
280
280
        return (this == this.get("root"));
281
281
    },
282
282
 
283
283
 
284
 
        /**
285
 
        * @method ancestor
286
 
        * @description Returns the Widget instance at the specified depth.
 
284
    /**
 
285
    * @method ancestor
 
286
    * @description Returns the Widget instance at the specified depth.
287
287
    * @param {number} depth Number representing the depth of the ancestor.
288
 
        * @return {Widget} Widget instance.
289
 
        */
 
288
    * @return {Widget} Widget instance.
 
289
    */
290
290
    ancestor: function (depth) {
291
291
 
292
292
        var root = this.get("root"),
377
377
Y.WidgetChild = Child;
378
378
 
379
379
 
380
 
}, '3.1.2' ,{requires:['widget']});
 
380
}, '3.2.0' ,{requires:['base-build', 'widget']});