]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
fixed merge conflict
authorDavid Seifried <david.c.seifried@gmail.com>
Fri, 26 Aug 2011 18:27:30 +0000 (14:27 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Fri, 26 Aug 2011 18:27:30 +0000 (14:27 -0400)
1  2 
plugins/code/popcorn.code.unit.js
plugins/linkedin/popcorn.linkedin.js
plugins/openmap/popcorn.openmap.js
plugins/subtitle/popcorn.subtitle.js
plugins/wikipedia/popcorn.wikipedia.js
plugins/wikipedia/popcorn.wikipedia.unit.js
popcorn.js

Simple merge
index 75363af5348e17d70de346527d46f8bd91d948c2,bd500295ee9fc78e4b5b321c8f076f0bf447cf6c..1777d8a99ddda0622cdc5f943fdba24aa2713bcb
        if ( apikey ) {
          script.innerHTML = "api_key: " + apikey;
        }
 -
 -      options.type = options.type.toLowerCase();
 +      
 +      options.type = options.type && options.type.toLowerCase() || "";
-       
+ 
        // Replace the LinkedIn plugin's error message to something more helpful
        var errorMsg = function() {
 -
          options._container = document.createElement( "p" );
          options._container.innerHTML = "Plugin requires a valid <a href='https://www.linkedin.com/secure/developer'>apikey</a>";
 -        document.getElementById( options.target ).appendChild( options._container );
 +        if ( !target && Popcorn.plugin.debug ) {
 +          throw ( "target container doesn't exist" );
 +        }
 +        target && target.appendChild( options._container );
        };
-       
+ 
        var setOptions = (function ( options ) {
  
          return {
       * The end function will be executed when the currentTime
       * of the video reaches the end time provided by the
       * options variable
-      */    
+      */
      end: function( event, options ) {
 -      options._container.parentNode.style.display = "none";
 +      options._container.style.display = "none";
      },
      _teardown: function( options ) {
        var tar = document.getElementById( options.target );
Simple merge
Simple merge
index 88863bcbe5278f1b88a5df5649ea1c0dc79f9f73,6ed4207b8fa6464ec94ec88e5785c4538cdd2428..80bb046ea0868baf5dae943319549588b7393409
@@@ -64,19 -72,7 +72,19 @@@ test("Popcorn wikipedia Plugin", functi
  
    popped.exec( 6, function() {
      popped.pause().removeTrackEvent( popped.data.trackEvents.byStart[ 4 ]._id );
-     equals ( theArticle.innerHTML, "", "wikidiv is now empty" );
+     equals( theArticle.innerHTML, "", "wikidiv is now empty" );
      plus();
    });
 +
 +  // empty track events should be safe
 +  popped.wikipedia({});
 +
 +  // debug should log errors on empty track events
 +  Popcorn.plugin.debug = true;
 +  try {
 +    popped.wikipedia({});
 +  } catch( e ) {
 +    ok(true, 'empty event was caught by debug');
 +    plus();
 +  }
  });
diff --cc popcorn.js
Simple merge