Skip to content

Commit

Permalink
Include reference to List obj when initialising plugins
Browse files Browse the repository at this point in the history
Fixes bug when using require JS and List is not global.
  • Loading branch information
javve committed Aug 30, 2014
1 parent 1ea294a commit 40d3c5e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### 2014-07
- *[Bugfix]* Include reference to List when initializing plugins. Fix for require.js which don't have a global reference to List.

### 2014-02-03: 1.1.1
- *[Bugfix]* Update `javve/events` version which fixes critical bugs in Safari for PC and PhantomJS (which makes the command line tests work again).
- *[Bugfix]* Clear search when clicking in the HTML5 clear button.
Expand Down
2 changes: 1 addition & 1 deletion dist/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ var List = function(id, options, values) {
for (var i = 0; i < self.plugins.length; i++) {
var plugin = self.plugins[i];
self[plugin.name] = plugin;
plugin.init(self);
plugin.init(self, List);
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion dist/list.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var List = function(id, options, values) {
for (var i = 0; i < self.plugins.length; i++) {
var plugin = self.plugins[i];
self[plugin.name] = plugin;
plugin.init(self);
plugin.init(self, List);
}
}
};
Expand Down

0 comments on commit 40d3c5e

Please sign in to comment.