Skip to content

Commit 1289538

Browse files
author
Jason Long
committed
fix coffeescript 'this' problem, bump to 0.8.5
1 parent 97ae546 commit 1289538

File tree

3 files changed

+36
-32
lines changed

3 files changed

+36
-32
lines changed

chrome/iso.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Iso
22
constructor: (target) ->
33
if target
4-
observer = new MutationObserver (mutations) ->
5-
mutations.forEach (mutation) ->
4+
observer = new MutationObserver (mutations) =>
5+
mutations.forEach (mutation) =>
66
if mutation.attributeName is 'data-max-contributions'
77
# We're loaded and ready!
88
observer.disconnect()
@@ -23,7 +23,7 @@ class Iso
2323
target = document.querySelector '.js-calendar-graph'
2424

2525
if target?
26-
observer = new MutationObserver (mutations) ->
26+
observer = new MutationObserver (mutations) =>
2727
mutations.forEach (mutation) ->
2828
if mutation.type is 'childList'
2929
days = $('#calendar-graph rect')

chrome/iso.js

Lines changed: 32 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chrome/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Isometric Contributions",
3-
"version": "0.8.4",
3+
"version": "0.8.5",
44
"description": "Renders an isometric pixel view of GitHub contribution graphs.",
55
"content_scripts": [ {
66
"css": [ "iso.css" ],

0 commit comments

Comments
 (0)