projects
/
Hacks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
924d0f2
)
Fix loading for Pixelfade
v1.1.0
author
Chip Black
<bytex64@bytex64.net>
Wed, 14 Sep 2011 10:03:17 +0000
(
05:03
-0500)
committer
Chip Black
<bytex64@bytex64.net>
Wed, 14 Sep 2011 10:03:17 +0000
(
05:03
-0500)
hacks/Pixelfade/Pixelfade.js
patch
|
blob
|
history
diff --git
a/hacks/Pixelfade/Pixelfade.js
b/hacks/Pixelfade/Pixelfade.js
index
ac01af1
..
e819966
100644
(file)
--- a/
hacks/Pixelfade/Pixelfade.js
+++ b/
hacks/Pixelfade/Pixelfade.js
@@
-17,7
+17,6
@@
enyo.kind({
],
create: function() {
this.inherited(arguments);
],
create: function() {
this.inherited(arguments);
- this.preferencesChanged();
},
rendered: function() {
this.canvas = this.$.canvas.hasNode();
},
rendered: function() {
this.canvas = this.$.canvas.hasNode();
@@
-31,6
+30,7
@@
enyo.kind({
img.src = "hacks/Pixelfade/pixelfade" + i + ".gif";
this.faders.push(img);
}
img.src = "hacks/Pixelfade/pixelfade" + i + ".gif";
this.faders.push(img);
}
+ this.preferencesChanged();
},
start: function() {
this.resize(window.innerWidth, window.innerHeight);
},
start: function() {
this.resize(window.innerWidth, window.innerHeight);
@@
-54,6
+54,8
@@
enyo.kind({
this.fadeInTimer = null;
},
resize: function(w, h) {
this.fadeInTimer = null;
},
resize: function(w, h) {
+ if (!this.canvas)
+ return;
this.canvas.style.width = w + 'px';
this.canvas.style.height = h + 'px';
this.canvas.width = w;
this.canvas.style.width = w + 'px';
this.canvas.style.height = h + 'px';
this.canvas.width = w;