Skip to content

Commit

Permalink
bump version 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mpneuried committed Jan 27, 2017
1 parent 8d66742 commit d3a31d5
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 22 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ There are several options to customize the behavior of iggy.
## Release History
|Version|Date|Description|
|:--:|:--:|:--|
|0.2.2|2017-01-27|#65 fixed search button handling; #66 filter empty elements; array facet respect array max count on click|
|0.2.1|2017-01-26|#58 Changed style of search button; #63 Optimized display of array facet gui; #61 Fixed pinned facets, added `active` and optimized tab navigation.|
|0.2.0|2017-01-25|#55 fixed date range picker and added option `dateformat`; #58 added search button; #59 The "+" is hidden if the facet select is open; Facets can be `pinned:true` to be always displayed and be undeletable. |
|0.1.13|2016-08-11|handle select2 jQuery text option texts #57|
Expand Down
2 changes: 1 addition & 1 deletion css/iggy.css

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

2 changes: 1 addition & 1 deletion dist/css/iggy.css

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

8 changes: 4 additions & 4 deletions dist/js/iggy.js

Large diffs are not rendered by default.

46 changes: 38 additions & 8 deletions js/iggy.debug.js

Large diffs are not rendered by default.

44 changes: 37 additions & 7 deletions js/iggy.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ IGGY = (function(superClass) {
this.triggerEvent = bind(this.triggerEvent, this);
this.triggerChange = bind(this.triggerChange, this);
this.getQuery = bind(this.getQuery, this);
this._filterEmpty = bind(this._filterEmpty, this);
this._error = bind(this._error, this);
this.addFacet = bind(this.addFacet, this);
this._prepareFacets = bind(this._prepareFacets, this);
Expand All @@ -65,6 +66,7 @@ IGGY = (function(superClass) {
idx: IGGY_IDX++
});
this.view.on("searchbutton", this.triggerEvent);
this.nonEmptyResults = this.results.sub(this._filterEmpty);
return;
}

Expand Down Expand Up @@ -175,16 +177,37 @@ IGGY = (function(superClass) {
return _err;
};

IGGY.prototype._filterEmpty = function(model) {
var _v;
_v = model.get("value");
if (_v == null) {
return false;
}
if (_v.length <= 0) {
return false;
}
return true;
};

IGGY.prototype.getQuery = function() {
return this.results;
return this.nonEmptyResults;
};

IGGY.prototype.triggerChange = function() {
this.trigger("change", this.results);
console.log(this.nonEmptyResults);
setTimeout((function(_this) {
return function() {
return _this.trigger("change", _this.nonEmptyResults);
};
})(this), 0);
};

IGGY.prototype.triggerEvent = function(eventName) {
this.trigger(eventName, this.results);
setTimeout((function(_this) {
return function() {
return _this.trigger(eventName, _this.nonEmptyResults);
};
})(this), 0);
};

IGGY.prototype._initErrors = function() {
Expand Down Expand Up @@ -802,12 +825,12 @@ IggyResults = (function(superClass) {

return IggyResults;

})(Backbone.Collection);
})(require("./backbone_sub"));

module.exports = IggyResults;


},{}],13:[function(require,module,exports){
},{"./backbone_sub":2}],13:[function(require,module,exports){
var BaseResult, BaseResults,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
Expand Down Expand Up @@ -1953,6 +1976,9 @@ FacetSubArray = (function(superClass) {
if (this.loading) {
return;
}
if (this._isFull()) {
return;
}
_vals = this.model.get("value");
if ((_vals != null) && !_.isArray(_vals)) {
_vals = [_vals];
Expand Down Expand Up @@ -2786,7 +2812,7 @@ MainView = (function(superClass) {
MainView.prototype.template = require("../tmpls/wrapper.jade");

MainView.prototype.events = {
"click .search-btn": "_onSearch",
"mousedown .search-btn": "_onSearch",
"focus .search-btn": "_onFocusSearch",
"click .add-facet-btn": "_addFacet",
"click": "_addFacet"
Expand Down Expand Up @@ -3317,7 +3343,11 @@ SelectorView = (function(superClass) {
};

SelectorView.prototype.selected = function(mdl) {
var _err, _errerr;
var _err, _errerr, _id, ref;
if ((this.main == null) && this._isFull()) {
_id = (ref = this.result.last()) != null ? ref.id : void 0;
this.rmRes(_id);
}
try {
if (mdl.onlyExec != null) {
if (mdl != null) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iggy",
"version": "0.2.1",
"version": "0.2.2",
"description": "Browser search module to use with Backbone.js",
"keywords": [],
"homepage": "https://github.com/mpneuried/iggy",
Expand Down

0 comments on commit d3a31d5

Please sign in to comment.