@@ -177,7 +177,7 @@ var Item = this.Item = Base.extend({
177177 * path.selected = true; // Select the path
178178 * console.log(project.selectedItems.length) // 1
179179 *
180- * @type boolean true if the item is selected, false otherwise
180+ * @type boolean { @ true the item is selected}
181181 * @bean
182182 */
183183 isSelected : function ( ) {
@@ -231,7 +231,7 @@ var Item = this.Item = Base.extend({
231231 * console.log(path.visible) // true
232232 * path.visible = false; // Hides the path
233233 *
234- * @type boolean true if the item is visible, false otherwise
234+ * @type boolean { @ true the item is visible}
235235 * @default true
236236 */
237237 visible : true ,
@@ -455,7 +455,7 @@ var Item = this.Item = Base.extend({
455455 * Removes the item from the project. If the item has children, they are also
456456 * removed.
457457 *
458- * @return {boolean } true if the item was removed, false otherwise
458+ * @return {boolean } { @ true the item was removed}
459459 */
460460 remove : function ( ) {
461461 if ( this . isSelected ( ) )
@@ -466,7 +466,7 @@ var Item = this.Item = Base.extend({
466466 /**
467467 * Removes all of the item's children (if any).
468468 *
469- * @return {boolean } true if removing was successful, false otherwise
469+ * @return {boolean } { @ true removing was successful}
470470 */
471471 removeChildren : function ( ) {
472472 var removed = false ;
@@ -535,7 +535,7 @@ var Item = this.Item = Base.extend({
535535 /**
536536 * Reverses the order of this item's children
537537 *
538- * @return {boolean } true if the children were removed, false otherwise.
538+ * @return {boolean } { @ true the children were removed}
539539 */
540540 reverseChildren : function ( ) {
541541 if ( this . _children ) {
@@ -575,7 +575,7 @@ var Item = this.Item = Base.extend({
575575 * {@grouptitle Tests }
576576 * Checks if the item contains any children items.
577577 *
578- * @return {boolean } true if it has one or more children, false otherwise.
578+ * @return {boolean } { @ true it has one or more children}
579579 */
580580 hasChildren : function ( ) {
581581 return this . _children && this . _children . length > 0 ;
@@ -586,8 +586,8 @@ var Item = this.Item = Base.extend({
586586 /**
587587 * Checks whether the item is editable.
588588 *
589- * @return {boolean } true when neither the item, nor its parents are
590- * locked or hidden, false otherwise.
589+ * @return {boolean } { @ true when neither the item, nor its parents are
590+ * locked or hidden}
591591 * @ignore
592592 */
593593 isEditable : function ( ) {
@@ -603,7 +603,7 @@ var Item = this.Item = Base.extend({
603603 /**
604604 * Checks whether the item is valid, i.e. it hasn't been removed.
605605 *
606- * @return {boolean } true if the item is valid, false otherwise.
606+ * @return {boolean } { @ true the item is valid}
607607 */
608608 // TODO: isValid / checkValid
609609
@@ -612,8 +612,7 @@ var Item = this.Item = Base.extend({
612612 * of the project.
613613 *
614614 * @param {Item } item The item to check against
615- * @return {boolean } true if it is above the specified item, false
616- * otherwise.
615+ * @return {boolean } {@true if it is above the specified item }
617616 */
618617 // TODO: isAbove
619618
@@ -622,8 +621,7 @@ var Item = this.Item = Base.extend({
622621 * the project.
623622 *
624623 * @param {Item } item The item to check against
625- * @return {boolean } true if it is below the specified item, false
626- * otherwise.
624+ * @return {boolean } {@true if it is below the specified item }
627625 */
628626 // TODO: isBelow
629627
@@ -632,8 +630,7 @@ var Item = this.Item = Base.extend({
632630 * Checks whether the specified item is the parent of the item.
633631 *
634632 * @param {Item } item The item to check against
635- * @return {boolean } true if it is the parent of the item, false
636- * otherwise.
633+ * @return {boolean } {@true if it is the parent of the item }
637634 */
638635 isParent : function ( item ) {
639636 return this . _parent == item ;
@@ -643,7 +640,7 @@ var Item = this.Item = Base.extend({
643640 * Checks whether the specified item is a child of the item.
644641 *
645642 * @param {Item } item The item to check against
646- * @return {boolean } true if it is a child of the item, false otherwise.
643+ * @return {boolean } { @ true it is a child of the item}
647644 */
648645 isChild : function ( item ) {
649646 return item . _parent == this ;
@@ -653,8 +650,7 @@ var Item = this.Item = Base.extend({
653650 * Checks if the item is contained within the specified item.
654651 *
655652 * @param {Item } item The item to check against
656- * @return {boolean } true if it is inside the specified item, false
657- * otherwise.
653+ * @return {boolean } {@true if it is inside the specified item }
658654 */
659655 isDescendant : function ( item ) {
660656 var parent = this ;
@@ -669,8 +665,8 @@ var Item = this.Item = Base.extend({
669665 * Checks if the item is an ancestor of the specified item.
670666 *
671667 * @param {Item } item the item to check against
672- * @return {boolean } true if the item is an ancestor of the specified
673- * item, false otherwise.
668+ * @return {boolean } { @ true if the item is an ancestor of the specified
669+ * item}
674670 */
675671 isAncestor : function ( item ) {
676672 var parent = item ;
@@ -685,8 +681,7 @@ var Item = this.Item = Base.extend({
685681 * Checks whether the item is grouped with the specified item.
686682 *
687683 * @param {Item } item
688- * @return {boolean } true if the items are grouped together, false
689- * otherwise.
684+ * @return {boolean } {@true if the items are grouped together }
690685 */
691686 isGroupedWith : function ( item ) {
692687 var parent = this . _parent ;
@@ -1082,7 +1077,7 @@ var Item = this.Item = Base.extend({
10821077 *
10831078 * @function
10841079 * @param {Item } item The item above which it should be moved
1085- * @return {boolean } true if it was moved, false otherwise
1080+ * @return {boolean } { @ true it was moved}
10861081 */
10871082 moveAbove : move ( true ) ,
10881083
@@ -1091,7 +1086,7 @@ var Item = this.Item = Base.extend({
10911086 *
10921087 * @function
10931088 * @param {Item } item the item below which it should be moved
1094- * @return {boolean } true if it was moved, false otherwise
1089+ * @return {boolean } { @ true it was moved}
10951090 */
10961091 moveBelow : move ( false )
10971092 } ;
0 commit comments