Skip to content

Commit

Permalink
Making sure the package is requirable
Browse files Browse the repository at this point in the history
  • Loading branch information
micky2be committed May 9, 2016
1 parent f4c77bf commit f14bf6d
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = function(grunt) {
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n'
' Licensed <%= _.pluck(pkg.license, "type").join(", ") %> */\n'
},
local: {
src: ['src/core.js', 'src/keeper.js', 'src/player.js', 'src/receiver.js', 'src/adapters/*.js'],
Expand Down
1 change: 0 additions & 1 deletion dist/player-0.0.11.min.js

This file was deleted.

17 changes: 12 additions & 5 deletions dist/player-0.0.11.js → dist/player-0.0.12.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! Player.js - v0.0.11 - 2015-07-24
/*! Player.js - v0.0.12 - 2016-05-09
* http://github.com/embedly/player.js
* Copyright (c) 2015 Embedly; Licensed BSD */
* Copyright (c) 2016 Embedly; Licensed BSD */
(function(window, document){
var playerjs = {};

Expand Down Expand Up @@ -520,8 +520,6 @@ for (var i = 0, l = playerjs.METHODS.all().length; i < l; i++) {
}
}

window.playerjs = playerjs;

// We need to catch all ready events in case the iframe is ready before the
// player is invoked.
playerjs.addEvent(window, 'message', function(e){
Expand Down Expand Up @@ -1265,4 +1263,13 @@ playerjs.VideoJSAdapter.prototype.ready = function(){
this.receiver.ready();
};

})(window, document);
if (typeof define === 'function' && define.amd) {
define(function () {
return playerjs
})
} else if (typeof module === 'object' && module.exports) {
module.exports = playerjs
} else {
window.playerjs = playerjs;
}
})(window, document);
Loading

0 comments on commit f14bf6d

Please sign in to comment.