Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
1b097a63
Commit
1b097a63
authored
Jan 17, 2011
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix strict mode complaints in firefox 4.
parent
72f1348b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
canvas.js
include/canvas.js
+4
-1
webutil.js
include/webutil.js
+1
-1
No files found.
include/canvas.js
View file @
1b097a63
...
...
@@ -10,7 +10,7 @@
/*jslint browser: true, white: false, bitwise: false */
/*global window, Util, Base64 */
Canvas
=
function
(
conf
)
{
function
Canvas
(
conf
)
{
conf
=
conf
||
{};
// Configuration
var
that
=
{},
// Public API interface
...
...
@@ -391,6 +391,9 @@ that.resize = function(width, height, true_color) {
that
.
clear
=
function
()
{
that
.
resize
(
640
,
20
);
conf
.
ctx
.
clearRect
(
0
,
0
,
c_width
,
c_height
);
// No benefit over default ("source-over") in Chrome and firefox
//conf.ctx.globalCompositeOperation = "copy";
};
that
.
stop
=
function
()
{
...
...
include/webutil.js
View file @
1b097a63
...
...
@@ -11,7 +11,7 @@
/*global window, document */
// Globals defined here
var
WebUtil
=
{},
$
;
var
WebUtil
=
{},
$
D
;
/*
* Simple DOM selector by ID
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment