www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

vues.js (683B)


      1 function makeView(obj, type, emplacement) {
      2     obj.vue = $('#vues > .' + type).clone().appendTo(emplacement);
      3     
      4     //Debug
      5     if (obj.vue.size() == 0) {
      6         console.log("Warning! Couldn't append template #vues > ." + type + " to", emplacement);
      7     }
      8     
      9     var parties =  $.makeArray(arguments);
     10     obj.parties = {};
     11     for (var i = 3; i < parties.length; i++) {
     12         obj.parties[parties[i]] = obj.vue.find('.' + parties[i]);
     13         
     14         // Debug
     15         if (obj.parties[parties[i]].size() == 0) {
     16             console.log("Warning! Couldn't find part", i, parties[i], "for", type, obj, ". obj is in debugPart.");
     17             debugPart = obj;
     18         }
     19     }
     20 }