Skip to content

Commit d2dab83

Browse files
committed
Use an uglifier friendly comment format for Licensing
1 parent dd59f7a commit d2dab83

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/CommentCoreLibrary.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/******
2-
* Comment Core For HTML5 VideoPlayers
3-
* Author : Jim Chen
4-
* Licensing : MIT License
5-
******/
1+
/*!
2+
* Comment Core For HTML5 VideoPlayers
3+
* Copyright (c) 2014 Jim Chen
4+
* License: MIT
5+
*/
66
Array.prototype.remove = function(obj){
77
for(var a = 0; a < this.length;a++)
88
if(this[a] == obj){
@@ -67,7 +67,7 @@ function CommentManager(stageObject){
6767
cmt.mode = data.mode;
6868
cmt.data = data;
6969
if(cmt.mode === 17){
70-
70+
7171
}else{
7272
cmt.appendChild(document.createTextNode(data.text));
7373
cmt.innerText = data.text;
@@ -113,7 +113,7 @@ function CommentManager(stageObject){
113113
__timer = 0;
114114
};
115115
}
116-
116+
117117
/** Public **/
118118
CommentManager.prototype.seek = function(time){
119119
this.position = this.timeline.bsearch(time,function(a,b){
@@ -212,7 +212,7 @@ CommentManager.prototype.sendComment = function(data){
212212
//cmt.style.width = (cmt.width + 1) + "px";
213213
//cmt.style.height = (cmt.height - 3) + "px";
214214
cmt.style.left = this.stage.width + "px";
215-
215+
216216
if(this.filter != null && !this.filter.beforeSend(cmt)){
217217
this.stage.removeChild(cmt);
218218
cmt = null;
@@ -246,8 +246,8 @@ CommentManager.prototype.sendComment = function(data){
246246
var COS = Math.cos;
247247
var SIN = Math.sin;
248248
var matrix = [
249-
COS(yr) * COS(zr) , COS(yr) * SIN(zr) , SIN(yr) , 0,
250-
(-SIN(zr)) , COS(zr) , 0 , 0,
249+
COS(yr) * COS(zr) , COS(yr) * SIN(zr) , SIN(yr) , 0,
250+
(-SIN(zr)) , COS(zr) , 0 , 0,
251251
(-SIN(yr) * COS(zr)) , (-SIN(yr) * SIN(zr)) , COS(yr) , 0,
252252
0 , 0 , 0 , 1
253253
];
@@ -301,7 +301,7 @@ CommentManager.prototype.onTimerEvent = function(timePassed,cmObj){
301301
if(cmt.dur == null)
302302
cmt.dur = 4000;
303303
if(cmt.data.alphaFrom != null && cmt.data.alphaTo != null){
304-
cmt.style.opacity = (cmt.data.alphaFrom - cmt.data.alphaTo) *
304+
cmt.style.opacity = (cmt.data.alphaFrom - cmt.data.alphaTo) *
305305
(cmt.ttl/cmt.dur) + cmt.data.alphaTo;
306306
}
307307
if(cmt.mode == 7 && cmt.data.movable){

0 commit comments

Comments
 (0)