Skip to content

Commit

Permalink
Remove hasOwnProperty()
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfiana Sibuea committed Sep 27, 2014
1 parent 0efbb9a commit 7c66c8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions foto.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,10 @@
var container = {};

for (var a in raw) {
if (raw.hasOwnProperty(a)) {

var capture = a.match(/ft\-([\d]+)\-src/);

if (capture) {
container[capture[1]] = raw[a];
}
var capture = a.match(/ft\-([\d]+)\-src/);

if (capture) {
container[capture[1]] = raw[a];
}
}

Expand Down
2 changes: 1 addition & 1 deletion foto.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion foto.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c66c8b

Please sign in to comment.