[Pkg-javascript-commits] [node-cssstyle] 05/39: fixed brain fart of hasOwnKey() vs hasOwnProperty()

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Sep 20 19:37:30 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository node-cssstyle.

commit 4068cbb669315bbd6140a21b986a3642f7d8d0fb
Author: Chad Walker <chad at chad-cat-lore-eddie.com>
Date:   Thu Jul 12 14:50:24 2012 -0700

    fixed brain fart of hasOwnKey() vs hasOwnProperty()
---
 lib/CSSStyleDeclaration.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/CSSStyleDeclaration.js b/lib/CSSStyleDeclaration.js
index fd3a51c..c93871c 100644
--- a/lib/CSSStyleDeclaration.js
+++ b/lib/CSSStyleDeclaration.js
@@ -57,7 +57,7 @@ var CSSStyleDeclaration = function CSSStyleDeclaration() {
      * Returns the empty string if the property has not been set or the property name does not correspond to a known CSS property.
      */
     var removeProperty = function (name) {
-        if (!values.hasOwnKey(name)) {
+        if (!values.hasOwnProperty(name)) {
             return "";
         }
         var index = Array.prototype.indexOf.call(this, name);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cssstyle.git



More information about the Pkg-javascript-commits mailing list