Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
feedback from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
drewfish committed Oct 4, 2012
1 parent dcaac36 commit 08c35cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/app/addons/rs/yui.server.js
Expand Up @@ -455,7 +455,7 @@ YUI.add('addon-rs-yui', function(Y, NAME) {
var loader,
m,
module,
oldYUAnodejs,
originalYUAnodejs,
info,
warn,
sortedPaths = {};
Expand All @@ -482,7 +482,7 @@ YUI.add('addon-rs-yui', function(Y, NAME) {

// Trick the loader into thinking it's -not- running on nodejs.
// This is the official way to do it.
oldYUAnodejs = Y.UA.nodejs;
originalYUAnodejs = Y.UA.nodejs;
Y.UA.nodejs = ('server' === env);

// Use ignoreRegistered here instead of the old `delete YUI.Env._renderedMods` hack
Expand All @@ -495,7 +495,7 @@ YUI.add('addon-rs-yui', function(Y, NAME) {
loader.addGroup({modules: modules}, mojit);
loader.calculate({required: required});

Y.UA.nodejs = oldYUAnodejs;
Y.UA.nodejs = originalYUAnodejs;

for (m = 0; m < loader.sorted.length; m += 1) {
module = loader.sorted[m];
Expand Down

0 comments on commit 08c35cd

Please sign in to comment.