Permalink
Browse files

- fixed typo, using window instead of this for strict mode support

  • Loading branch information...
1 parent 0212078 commit 108b7c0edf1af90e3cda6209f537f3cd53c080bd @kamicane committed Feb 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/moofx.js
View
4 src/moofx.js
@@ -25,7 +25,7 @@ var camelize = function(self){
// computedStyle (@kamicane)
-var computedStyle = (this.getComputedStyle) ? function(element){
+var computedStyle = (window.getComputedStyle) ? function(element){
var computedStyle = getComputedStyle(element);
return function(property){
return (computedStyle) ? computedStyle.getPropertyValue(hyphenate(property)) : '';
@@ -576,7 +576,7 @@ var setStyle = function(nodes, property, value){
var getStyle = function(node, property){
var getter = getters[property = camelize(property)];
if (!getter) throw 'no getter found for ' + property;
- return getter.call(nodes);
+ return getter.call(node);
};
// public interface

0 comments on commit 108b7c0

Please sign in to comment.