Skip to content

Commit

Permalink
Didn't really need to make a util method to stop method throwing, mov…
Browse files Browse the repository at this point in the history
…ed it inline.
  • Loading branch information
ryanseddon committed Jan 14, 2012
1 parent 6d49b97 commit 0636d51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion lib/source-map/array-set.js
Expand Up @@ -49,7 +49,7 @@ define(function (require, exports, module) {
* @param String str
*/
ArraySet.prototype.has = function ArraySet_has(aStr) {
return util.hasOwn(this._set, aStr);
return Object.prototype.hasOwnProperty.call(this._set, aStr);
};

/**
Expand Down
5 changes: 0 additions & 5 deletions lib/source-map/util.js
Expand Up @@ -33,10 +33,5 @@ define(function (require, exports, module) {
: aRoot.replace(/\/*$/, '') + '/' + aPath;
}
exports.join = join;

function hasOwn(obj, key) {
return Object.prototype.hasOwnProperty.call(obj, key);
}
exports.hasOwn = hasOwn;

});

0 comments on commit 0636d51

Please sign in to comment.