Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
meeech committed Oct 21, 2010
1 parent 519667a commit f61f475
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pagescript.js
Expand Up @@ -3,8 +3,7 @@ Y.use('node', function(Y) {
var selectors = {
PLAY_WRAPPER: '.btnWrap',
BUTTONS_CONTAINER: '.main-content',
BUTTON_NETFLIXQ: '.netflixq',
MODDED: 'modded'
BUTTON_NETFLIXQ: '.netflixq'
};

var button = '<a class="netflixq btn watchlk">netflix<span class="q">Q</span></a>';
Expand All @@ -30,9 +29,7 @@ var init = function() {
var pane = sliderParent.one('.qSlider-currentPane');
//If a netflix button is found in the container, then we know its already been modded
if(Y.Lang.isNull(pane.one(selectors.BUTTON_NETFLIXQ))) {
pane.addClass(selectors.MODDED)
.all(selectors.PLAY_WRAPPER)
.insert(button);
pane.all(selectors.PLAY_WRAPPER).insert(button);
}

}, [e.currentTarget.ancestor('.qSlider')]);
Expand Down

0 comments on commit f61f475

Please sign in to comment.