Skip to content

Commit

Permalink
remove the head(), body(), foot() methods - its probably good to recv…
Browse files Browse the repository at this point in the history
…isit the notion of having convenience methods in 3.5.0 but these methods may be unclear
  • Loading branch information
tilomitra committed Jul 27, 2011
1 parent b43de88 commit 215e870
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 100 deletions.
33 changes: 0 additions & 33 deletions build/widget-stdmod/widget-stdmod-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,38 +256,6 @@ YUI.add('widget-stdmod', function(Y) {

StdMod.prototype = {

/**
* Returns a reference to the Y.Node corresponding to the header.
*
* @method head
* @public
* @return {Node} A reference to the header node
*/
head : function() {
return this.getStdModNode(STD_HEADER) || this._renderStdMod(STD_HEADER);
},

/**
* Returns a reference to the Y.Node corresponding to the body.
*
* @method body
* @public
* @return {Node} A reference to the body node
*/
body : function() {
return this.getStdModNode(STD_BODY) || this._renderStdMod(STD_BODY);
},

/**
* Returns a reference to the Y.Node corresponding to the footer.
*
* @method head
* @public
* @return {Node} A reference to the footer node
*/
foot : function() {
return this.getStdModNode(STD_FOOTER) || this._renderStdMod(STD_FOOTER);
},
/**
* Synchronizes the UI to match the Widgets standard module state.
* <p>
Expand Down Expand Up @@ -796,5 +764,4 @@ YUI.add('widget-stdmod', function(Y) {
Y.WidgetStdMod = StdMod;



}, '@VERSION@' ,{requires:['base-build', 'widget']});
2 changes: 1 addition & 1 deletion build/widget-stdmod/widget-stdmod-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 0 additions & 33 deletions build/widget-stdmod/widget-stdmod.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,38 +256,6 @@ YUI.add('widget-stdmod', function(Y) {

StdMod.prototype = {

/**
* Returns a reference to the Y.Node corresponding to the header.
*
* @method head
* @public
* @return {Node} A reference to the header node
*/
head : function() {
return this.getStdModNode(STD_HEADER) || this._renderStdMod(STD_HEADER);
},

/**
* Returns a reference to the Y.Node corresponding to the body.
*
* @method body
* @public
* @return {Node} A reference to the body node
*/
body : function() {
return this.getStdModNode(STD_BODY) || this._renderStdMod(STD_BODY);
},

/**
* Returns a reference to the Y.Node corresponding to the footer.
*
* @method head
* @public
* @return {Node} A reference to the footer node
*/
foot : function() {
return this.getStdModNode(STD_FOOTER) || this._renderStdMod(STD_FOOTER);
},
/**
* Synchronizes the UI to match the Widgets standard module state.
* <p>
Expand Down Expand Up @@ -796,5 +764,4 @@ YUI.add('widget-stdmod', function(Y) {
Y.WidgetStdMod = StdMod;



}, '@VERSION@' ,{requires:['base-build', 'widget']});
1 change: 0 additions & 1 deletion src/widget-stdmod/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Widget Std Mod
3.4.0
-----

* Add convenience methods head(), body(), foot()
* Move attribute event listeners to _renderUIStdMod() method so that
setStdModContent() can be called on renderUI()

Expand Down
32 changes: 0 additions & 32 deletions src/widget-stdmod/js/Widget-StdMod.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,38 +254,6 @@

StdMod.prototype = {

/**
* Returns a reference to the Y.Node corresponding to the header.
*
* @method head
* @public
* @return {Node} A reference to the header node
*/
head : function() {
return this.getStdModNode(STD_HEADER) || this._renderStdMod(STD_HEADER);
},

/**
* Returns a reference to the Y.Node corresponding to the body.
*
* @method body
* @public
* @return {Node} A reference to the body node
*/
body : function() {
return this.getStdModNode(STD_BODY) || this._renderStdMod(STD_BODY);
},

/**
* Returns a reference to the Y.Node corresponding to the footer.
*
* @method head
* @public
* @return {Node} A reference to the footer node
*/
foot : function() {
return this.getStdModNode(STD_FOOTER) || this._renderStdMod(STD_FOOTER);
},
/**
* Synchronizes the UI to match the Widgets standard module state.
* <p>
Expand Down

0 comments on commit 215e870

Please sign in to comment.