OSDN Git Service
(root)
/
flapp
/
flapp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new Function 中から呼ばれる関数やプロパティは固定文字列で結び付けておく(ADVANCED_OPTIMIZATION 対応)
[flapp/flapp.git]
/
src
/
canvas.js
diff --git
a/src/canvas.js
b/src/canvas.js
index
55bbf79
..
dd9741c
100644
(file)
--- a/
src/canvas.js
+++ b/
src/canvas.js
@@
-7,7
+7,7
@@
goog.scope(function() {
*/
FlappCanvas = function(canvas) {
this.canvas = canvas;
- this
.ctx = canvas.getContext('2d');
+ this
['ctx'] = this.ctx = canvas.getContext('2d'); // for closure compilre
};
FlappCanvas.prototype = {