Permalink
Browse files

A few fixes to get Hedwig up to date

  • Loading branch information...
wycats committed Sep 17, 2010
1 parent 60019be commit c6ee68012ae55389592494aa923e2fc476f0dc35
Showing with 146 additions and 148 deletions.
  1. +1 −1 apps/hedwig/resources/main_page.js
  2. +8 −10 apps/hedwig/views/demo_panel.js
  3. +1 −1 themes/pig/build-d
  4. +136 −136 themes/pig/resources/theme.css
@@ -47,7 +47,7 @@ Hedwig.mainPage = SC.Page.design({
this.topToolbar.set("masterIsHidden", this.get("masterIsHidden"));
}.observes("masterIsHidden"),
- topToolbar: SC.ToolbarView.design(SC.Animatable, {
+ topToolbar: SC.ToolbarView.design({
masterIsHidden: NO,
layout: { top: 0, right: 0, left: 0, height: 44 },
@@ -74,7 +74,7 @@ Hedwig.DemoPanel.generateWithView = function(view) {
init: function() {
sc_super();
- if (SC.Animatable.enableCSS3DTransforms) {
+ if (SC.platform.supportsCSS3DTransforms) {
this.back.flip(180, YES);
} else {
this.back.set("isVisible", NO);
@@ -91,15 +91,15 @@ Hedwig.DemoPanel.generateWithView = function(view) {
nowShowingDidChange: function() {
var ns = this.get("nowShowing");
if (ns == "front") {
- if (SC.Animatable.enableCSS3DTransforms) {
+ if (SC.platform.supportsCSS3DTransforms) {
this.front.flip(0);
this.back.flip(180);
} else {
this.front.set("isVisible", YES);
this.back.set("isVisible", NO);
}
} else {
- if (SC.Animatable.enableCSS3DTransforms) {
+ if (SC.platform.supportsCSS3DTransforms) {
this.front.flip(180);
this.back.flip(360);
} else {
@@ -116,9 +116,8 @@ Hedwig.DemoPanel.generateWithView = function(view) {
"duration": 0.6, timing: SC.Animatable.TRANSITION_EASE_IN_OUT
}
},
- style: {
- "rotateY": "0deg"
- },
+
+ layout: { rotateY: 0 },
flip: function(rot, d) {
if (d) this.disableAnimation();
@@ -166,9 +165,8 @@ Hedwig.DemoPanel.generateWithView = function(view) {
"duration": 0.5, timing: SC.Animatable.TRANSITION_EASE_IN_OUT
}
},
- style: {
- "rotateY": "0deg"
- },
+
+ layout: { rotateY: 0 },
flip: function(rot) {
this.adjust({
@@ -199,4 +197,4 @@ Hedwig.DemoPanel.generateWithView = function(view) {
})
})
});
-};
+};
View
@@ -1,2 +1,2 @@
#!/usr/bin/env ruby
-system('chance/chance.rb --data-url --less ace.light.pig')
+system('chance/chance.rb --data-url --less ace.pig')
Oops, something went wrong.

0 comments on commit c6ee680

Please sign in to comment.