{"action":"created","issue":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/631","labels_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/631/labels{/name}","comments_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/631/comments","events_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/631/events","html_url":"https://github.com/BrowserSync/browser-sync/issues/631","id":78959607,"number":631,"title":"watch callbacks should have access to public instance","user":{"login":"shakyShane","id":1643522,"avatar_url":"https://avatars.githubusercontent.com/u/1643522?v=3","gravatar_id":"","url":"https://api.github.com/users/shakyShane","html_url":"https://github.com/shakyShane","followers_url":"https://api.github.com/users/shakyShane/followers","following_url":"https://api.github.com/users/shakyShane/following{/other_user}","gists_url":"https://api.github.com/users/shakyShane/gists{/gist_id}","starred_url":"https://api.github.com/users/shakyShane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shakyShane/subscriptions","organizations_url":"https://api.github.com/users/shakyShane/orgs","repos_url":"https://api.github.com/users/shakyShane/repos","events_url":"https://api.github.com/users/shakyShane/events{/privacy}","received_events_url":"https://api.github.com/users/shakyShane/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-21T11:47:29Z","updated_at":"2015-05-22T13:41:35Z","closed_at":"2015-05-21T11:49:03Z","body":"re: #411\r\n\r\nExample use-case, when using `bs-config`\r\n\r\n```js\r\nmodule.exports = {\r\n    server: './app',\r\n    files: [\r\n        './app/*.html',\r\n        './app/js/*.js',\r\n        {\r\n            options: {\r\n                ignoreInitial: true\r\n            },\r\n            match: './app/css/*.css',\r\n            fn: function (event, file) {\r\n                if (event === 'change') {\r\n                    this.reload(file);\r\n                }\r\n            }\r\n        }\r\n    ]\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/comments/104663536","html_url":"https://github.com/BrowserSync/browser-sync/issues/631#issuecomment-104663536","issue_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/631","id":104663536,"user":{"login":"shakyShane","id":1643522,"avatar_url":"https://avatars.githubusercontent.com/u/1643522?v=3","gravatar_id":"","url":"https://api.github.com/users/shakyShane","html_url":"https://github.com/shakyShane","followers_url":"https://api.github.com/users/shakyShane/followers","following_url":"https://api.github.com/users/shakyShane/following{/other_user}","gists_url":"https://api.github.com/users/shakyShane/gists{/gist_id}","starred_url":"https://api.github.com/users/shakyShane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shakyShane/subscriptions","organizations_url":"https://api.github.com/users/shakyShane/orgs","repos_url":"https://api.github.com/users/shakyShane/repos","events_url":"https://api.github.com/users/shakyShane/events{/privacy}","received_events_url":"https://api.github.com/users/shakyShane/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T13:41:35Z","updated_at":"2015-05-22T13:41:35Z","body":"remove it, & put a log in to see what i mean\r\n\r\n```js\r\nmodule.exports = {\r\n    server: './app',\r\n    files: [\r\n        './app/*.html',\r\n        './app/js/*.js',\r\n        {\r\n            match: './app/css/*.css',\r\n            fn: function (event, file) {\r\n                console.log(event);\r\n            }\r\n        }\r\n    ]\r\n};\r\n```"}}