Skip to content

Commit

Permalink
Adding onUninstall plugin interface #22
Browse files Browse the repository at this point in the history
  • Loading branch information
danielalves committed Mar 9, 2015
1 parent 38944ef commit 387e775
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/javascripts/CorePluginSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ describe("$.silverTrackPlugin", function() {
expect(plugin.onInstall).toBeDefined();
});

it("should define 'onUninstall'", function() {
expect(plugin.onUninstall).toBeDefined();
});

it("should define 'beforeStart'", function() {
expect(plugin.beforeStart).toBeDefined();
});
Expand Down
1 change: 1 addition & 0 deletions src/jquery.silver_track.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@
initialize: function(options) {},

onInstall: function(track) {},
onUninstall: function(track) {},
beforeStart: function(track) {},
afterStart: function(track) {},
beforeRestart: function(track) {},
Expand Down

0 comments on commit 387e775

Please sign in to comment.