Permalink
Browse files

Merge pull request #36 from billyroh/master

Added a "hover" attribute to each view.
  • Loading branch information...
koenbok committed Jul 13, 2013
2 parents ae64324 + e84624d commit 9bd31bf905b3a1f1f4878993c7f5c177cf92f184
Showing with 18 additions and 1 deletion.
  1. +18 −1 build/framer.js
View
@@ -2663,6 +2663,22 @@ require.define("/src/views/view.coffee",function(require,module,exports,__dirnam
}
});
View.define("hover", {
get: function() {
return this._hover;
},
set: function(value) {
this._hover = value;
if (value === true) {
this.style.cursor = "pointer";
}
if (value === false) {
this.style.cursor = "auto";
}
return this.emit("change:hover");
}
});
View.define("visible", {
get: function() {
return this._visible || true;
@@ -2926,7 +2942,8 @@ require.define("/src/views/view.coffee",function(require,module,exports,__dirnam
"class": "",
superView: null,
visible: true,
index: 0
index: 0,
hover: false
});
View.Views = [];

0 comments on commit 9bd31bf

Please sign in to comment.