Permalink
Browse files

reduce skin delay

  • Loading branch information...
1 parent 359a418 commit 62274f167c9e9a50b050cbe29a3a033c2dadbb69 @cshum committed Oct 20, 2012
Showing with 8 additions and 5 deletions.
  1. +8 −5 scm.html
View
@@ -76,12 +76,15 @@
var config = SCM.config;
SCM.config = _.once(function(data){
config(data);
- $('#skin,#contentW,#playerW,#playlistW').each(function(){
- ko.applyBindings(SCM,this);
- $(this).mousedown(function(){
- return false;
+ ko.applyBindings(SCM,$('#skin').get(0));
+ setTimeout(function(){
+ $('#contentW,#playerW,#playlistW').each(function(){
+ ko.applyBindings(SCM,this);
+ $(this).mousedown(function(){
+ return false;
+ });
});
- });
+ },200);
});
while(SCMQueue.length > 0)

0 comments on commit 62274f1

Please sign in to comment.