]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
moved manifest declarations outside of plugin definitions. t669
authorcadecairos <chris.decairos@gmail.com>
Thu, 28 Jul 2011 22:08:09 +0000 (18:08 -0400)
committercadecairos <chris.decairos@gmail.com>
Thu, 28 Jul 2011 22:08:09 +0000 (18:08 -0400)
plugins/attribution/popcorn.attribution.js
plugins/code/popcorn.code.js
plugins/lastfm/popcorn.lastfm.js
plugins/processing/popcorn.processing.js
plugins/tagthisperson/popcorn.tagthisperson.js

index 703ea964ff4e8a5ecdf944031b12596e4f03462d..53c561a42a297333aa990c5a13b4bcacfdfab368 100755 (executable)
     target;
     
     return {
-      manifest: {
-        about:{
-          name: "Popcorn Attribution Plugin",
-          version: "0.2",
-          author: "@rwaldron",
-          website: "github.com/rwldrn"
-        },
-        options:{
-          start: { elem:"input", type:"text", label:"In" },
-          end: { elem:"input", type:"text", label:"Out" },
-          nameofwork: { elem:"input", type:"text", label:"Name of Work" },
-          nameofworkurl: { elem:"input", type:"text", label:"Url of Work" },
-          copyrightholder: { elem:"input", type:"text", label:"Copyright Holder" },
-          copyrightholderurl: { elem:"input", type:"text", label:"Copyright Holder Url" },
-          license: { elem:"input", type:"text", label:"License type" },
-          licenseurl: { elem:"input", type:"text", label:"License URL" },
-          target: "attribution-container"
-        }
-      },
+    
       _setup: function( options ) {
 
         var attrib = "", 
         target && target.removeChild( options._container );
       }
     };
-  })());
+  })(),
+  {
+    about:{
+      name: "Popcorn Attribution Plugin",
+      version: "0.2",
+      author: "@rwaldron",
+      website: "github.com/rwldrn"
+    },
+    options:{
+      start: { elem:"input", type:"text", label:"In" },
+      end: { elem:"input", type:"text", label:"Out" },
+      nameofwork: { elem:"input", type:"text", label:"Name of Work" },
+      nameofworkurl: { elem:"input", type:"text", label:"Url of Work" },
+      copyrightholder: { elem:"input", type:"text", label:"Copyright Holder" },
+      copyrightholderurl: { elem:"input", type:"text", label:"Copyright Holder Url" },
+      license: { elem:"input", type:"text", label:"License type" },
+      licenseurl: { elem:"input", type:"text", label:"License URL" },
+      target: "attribution-container"
+    } 
+  });
 })( Popcorn );
index a871a3505c0a6d99d150cc61a275cdc45d0b09dd..18b08a4a34077f5545e417971da229e271db6242 100755 (executable)
         }
       }
     };
-  },
-  {
+  }, 
+  { 
     about: {
       name: 'Popcorn Code Plugin',
       version: '0.1',
index 9de8702d3d69b3128efdca5117d8e23fb47263cf..94f9a85d6f03fb4d4d07b12efba8a79dd9354e71 100755 (executable)
       
     
     return {
-      manifest: {
-        about:{
-          name:    "Popcorn LastFM Plugin",
-          version: "0.1",
-          author:  "Steven Weerdenburg",
-          website: "http://sweerdenburg.wordpress.com/"
-        },
-        options:{
-          start    : {elem:'input', type:'text', label:'In'},
-          end      : {elem:'input', type:'text', label:'Out'},
-          target   : 'lastfm-container',
-          artist   : {elem:'input', type:'text', label:'Artist'}
-        }
-      },
 
       _setup: function( options ) {
         options._container = document.createElement( 'div' );
         document.getElementById( options.target ) && document.getElementById( options.target ).removeChild( options._container );
       }
     };
-  })());
+  })(),
+  {
+    about:{
+      name:    "Popcorn LastFM Plugin",
+      version: "0.1",
+      author:  "Steven Weerdenburg",
+      website: "http://sweerdenburg.wordpress.com/"
+    },
+    options:{
+      start    : {elem:'input', type:'text', label:'In'},
+      end      : {elem:'input', type:'text', label:'Out'},
+      target   : 'lastfm-container',
+      artist   : {elem:'input', type:'text', label:'Artist'}
+    }
+  });
 
 })( Popcorn );
index 60e2327a899654e73de1528401368f18d86be5e4..a6becdd9b1f910f33c6ba7f737b22c6bc6e7eb28 100644 (file)
 
     return {
 
-      manifest: {
-        about: {
-          name: "Popcorn Processing Plugin",
-          version: "0.1",
-          author: "Christopher De Cairos, Benjamin Chalovich",
-          website: "cadecairos.blogspot.com, ben1amin.wordpress.org"
-        },
-        options: {
-          start :   { elem: "input", type: "text", label: "In" },
-          end :     { elem: "input", type: "text", label: "Out" },
-          target :  { elem: "input", type: "text", label: "Target" },
-          sketch :  { elem: "input", type: "text", label: "Sketch" },
-          noPause : { elem: "select", options: [ "TRUE", "FALSE" ], label: "No Loop" }
-        }
-      },
-
       _setup: function( options ) {
         
         options.codeReady = false;
         options.parentTarget && options.parentTarget.removeChild( options.canvas );
       }
     };
+  },
+  {
+    about: {
+      name: "Popcorn Processing Plugin",
+      version: "0.1",
+      author: "Christopher De Cairos, Benjamin Chalovich",
+      website: "cadecairos.blogspot.com, ben1amin.wordpress.org"
+    },
+    options: {
+      start :   { elem: "input", type: "text", label: "In" },
+      end :     { elem: "input", type: "text", label: "Out" },
+      target :  { elem: "input", type: "text", label: "Target" },
+      sketch :  { elem: "input", type: "text", label: "Sketch" },
+      noPause : { elem: "select", options: [ "TRUE", "FALSE" ], label: "No Loop" }
+    }
   });
 }( Popcorn ));
index 519ac294884d7b27f7073dcbc19d8817d2cc6144..557b0fc0ae958b0e8ebdc072322d49220d5e0da1 100755 (executable)
   Popcorn.plugin( "tagthisperson" , ( function() {
     
     return {
-      manifest: {
-        about:{
-          name: "Popcorn tagthisperson Plugin",
-          version: "0.1",
-          author: "@annasob",
-          website: "annasob.wordpress.com"
-        },
-        options:{
-          start    : {elem:'input', type:'text', label:'In'},
-          end      : {elem:'input', type:'text', label:'Out'},
-          target   : 'tagthisperson-container',
-          person   : {elem:'input', type:'text', label:'Name'},
-          image    : {elem:'input', type:'text', label:'Image Src'},
-          href     : {elem:'input', type:'text', label:'URL'}   
-        }
-      },
+    
       _setup: function( options ) {
         var exists = false;
         // loop through the existing objects to ensure no duplicates
         document.getElementById( options.target ).innerHTML = options._p.toString();
       }
    };
-  })());
+  })(),
+  {
+    about:{
+      name: "Popcorn tagthisperson Plugin",
+      version: "0.1",
+      author: "@annasob",
+      website: "annasob.wordpress.com"
+    },
+    options:{
+      start    : {elem:'input', type:'text', label:'In'},
+      end      : {elem:'input', type:'text', label:'Out'},
+      target   : 'tagthisperson-container',
+      person   : {elem:'input', type:'text', label:'Name'},
+      image    : {elem:'input', type:'text', label:'Image Src'},
+      href     : {elem:'input', type:'text', label:'URL'}   
+    }
+  });
 
 })( Popcorn );