Skip to content

Commit

Permalink
Merge pull request #36 from billyroh/master
Browse files Browse the repository at this point in the history
Added a "hover" attribute to each view.
  • Loading branch information
koenbok committed Jul 13, 2013
2 parents ae64324 + e84624d commit 9bd31bf
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion build/framer.js
Expand Up @@ -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", { View.define("visible", {
get: function() { get: function() {
return this._visible || true; return this._visible || true;
Expand Down Expand Up @@ -2926,7 +2942,8 @@ require.define("/src/views/view.coffee",function(require,module,exports,__dirnam
"class": "", "class": "",
superView: null, superView: null,
visible: true, visible: true,
index: 0 index: 0,
hover: false
}); });


View.Views = []; View.Views = [];
Expand Down

0 comments on commit 9bd31bf

Please sign in to comment.