Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 108b7c0edf1af90e3cda6209f537f3cd53c080bd 1 parent 0212078
@kamicane authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.