Skip to content
Browse files

Upgrades to setup and load

  • Loading branch information...
1 parent f6617c7 commit 3243ec6cf26ccba257944a5fe6554802d054c944 @scottschiller committed Nov 24, 2013
Showing with 19 additions and 18 deletions.
  1. +19 −18 demo/christmas-lights/christmaslights.js
View
37 demo/christmas-lights/christmaslights.js
@@ -719,9 +719,16 @@
window.smashInit = smashInit;
- // start in either case
- soundManager.onready(smashInit);
- soundManager.ontimeout(smashInit);
+ soundManager.setup({
+ url: '../../swf/',
+ // preferFlash: true,
+ flashVersion: 9,
+ useHighPerformance: true,
+ wmode: 'transparent',
+ debugMode: false,
+ onready: smashInit,
+ ontimeout: smashInit
+ });
});
@@ -744,12 +751,11 @@
}
}
}
-
- function scriptOnload() {
- this.onreadystatechange = null;
- this.onload = null;
- window.setTimeout(onLoad, 20);
- }
+ function scriptOnload() {
+ this.onreadystatechange = null;
+ this.onload = null;
+ window.setTimeout(onLoad, 20);
+ }
var oS = document.createElement('script');
oS.type = 'text/javascript';
oS.setAttribute('async', true);
@@ -765,20 +771,15 @@
}
if (typeof window.YUI === 'undefined') {
+
loadScript(YUI_SEED_URL, function() {
+
initChristmasLights();
+
});
+
}
}());
- soundManager.setup({
- url: '../../swf/',
- preferFlash: true,
- flashVersion: 9,
- useHighPerformance: true,
- wmode: 'transparent',
- debugMode: false
- });
-
}());

0 comments on commit 3243ec6

Please sign in to comment.
Something went wrong with that request. Please try again.