SkyPHP / skyphp

PHP5 Framework
http://switchbreak.com/skyphp
17 stars 38 forks source link

if null css filename, still load the next css #207

Closed will123195 closed 11 years ago

will123195 commented 11 years ago

@stanistan, like this?

stanistan commented 11 years ago

This would fix it, but I think a better thing would be to keep the way it was before the if/else and do.

cssArr = cssArr.filter(function(n) { return !!n; }); 
// keeps truthy values before deferLoad invocation
will123195 commented 11 years ago

check it out