ЙажаСценарий / Говнокод #18343 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
orders_list_app.constant('User', {
    auth : ('False' == 'True') ? true : false,
    contractor : ('' == 'True')  ? true : false,
    user_id : ('False' == 'True') ? None : false
});

// goes in another place

angular.forEach(rootCategory.categories, function(category_2){
    angular.forEach(category_2.service_orders, function(service_2){
        rootCategory.service_orders.push(service_2);
            angular.forEach(category_2.categories, function(category_3){
                angular.forEach(category_3.service_orders, function(service_3){
                    rootCategory.service_orders.push(service_3);
                });
            });
        });
    });
    rootCategory.service_orders.push({name:"Другие услуги" ,text: "", title: "Другие услуги"});
});

На одном из отечественном сайте в продакшыне..

Запостил: alek0585 alek0585, (Updated )

Комментарии (0) RSS

Добавить комментарий

Где здесь C++, guest?!

    А не использовать ли нам bbcode?


    8