Skip to content

Commit

Permalink
#601 - replace with
Browse files Browse the repository at this point in the history
  • Loading branch information
jslayer committed May 7, 2013
1 parent 42b1b39 commit bac20cb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 27 deletions.
4 changes: 2 additions & 2 deletions build/widget-buttons/widget-buttons-coverage.js

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions build/widget-buttons/widget-buttons-debug.js
Expand Up @@ -606,16 +606,14 @@ WidgetButtons.prototype = {
containerSelector = '.' + sectionClassName + ' .' + buttonsClassName;

// Search only inside the current widget
contentBox.all(containerSelector).each(function(node, index) {
var widget;
contentBox.all(containerSelector).some(function(node){
var widget = Y.Widget.getByNode(node),
isBelongs = !widget || widget === this;

if (!container) {
widget = Y.Widget.getByNode(node);

if (!widget || widget === this) {
container = node;
}
if (isBelongs) {
container = node;
}
return isBelongs;
}, this);

// Create the `container` if it doesn't already exist.
Expand Down
2 changes: 1 addition & 1 deletion build/widget-buttons/widget-buttons-min.js

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

14 changes: 6 additions & 8 deletions build/widget-buttons/widget-buttons.js
Expand Up @@ -606,16 +606,14 @@ WidgetButtons.prototype = {
containerSelector = '.' + sectionClassName + ' .' + buttonsClassName;

// Search only inside the current widget
contentBox.all(containerSelector).each(function(node, index) {
var widget;
contentBox.all(containerSelector).some(function(node){
var widget = Y.Widget.getByNode(node),
isBelongs = !widget || widget === this;

if (!container) {
widget = Y.Widget.getByNode(node);

if (!widget || widget === this) {
container = node;
}
if (isBelongs) {
container = node;
}
return isBelongs;
}, this);

// Create the `container` if it doesn't already exist.
Expand Down
14 changes: 6 additions & 8 deletions src/widget-buttons/js/widget-buttons.js
Expand Up @@ -604,16 +604,14 @@ WidgetButtons.prototype = {
containerSelector = '.' + sectionClassName + ' .' + buttonsClassName;

// Search only inside the current widget
contentBox.all(containerSelector).each(function(node, index) {
var widget;
contentBox.all(containerSelector).some(function(node){
var widget = Y.Widget.getByNode(node),
isBelongs = !widget || widget === this;

if (!container) {
widget = Y.Widget.getByNode(node);

if (!widget || widget === this) {
container = node;
}
if (isBelongs) {
container = node;
}
return isBelongs;
}, this);

// Create the `container` if it doesn't already exist.
Expand Down

0 comments on commit bac20cb

Please sign in to comment.