Skip to content

Commit fbdb8b7

Browse files
committed
v0.2.3: Close #25, #28, #29
Add CHANGELOG.md (ref #27) Fix bo-if (thanks @ctucker)
1 parent d11f863 commit fbdb8b7

File tree

5 files changed

+25
-9
lines changed

5 files changed

+25
-9
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<a name="0.2.3"></a>
2+
# 0.2.3 (2014-01-20)
3+
4+
5+
## Bug Fixes
6+
7+
- **bo-if:**
8+
- Ensures that we both process newly added binders from bo-if, and that
9+
we only process each binder once ([d11f863](https://github.com/Pasvaz/bindonce/commit/e091c273bbd17603d410fecc363874f0d1e6f38e))
10+
11+
## Features
12+
13+
- **Minification:**
14+
- add min file ([47277ee](https://github.com/Pasvaz/bindonce/commit/47277eedd092b3210de362c725a7dadcddac8e87))
15+
- **Changelog:**
16+
- Created a changelog file

bindonce.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"use strict";
33
/**
44
* Bindonce - Zero watches binding for AngularJs
5-
* @version v0.2.2 - 2013-05-07
5+
* @version v0.2.3 - 2013-05-07
66
* @link https://github.com/Pasvaz/bindonce
77
* @author Pasquale Vazzana <pasqualevazzana@gmail.com>
88
* @license MIT License, http://www.opensource.org/licenses/MIT
@@ -101,13 +101,14 @@
101101
}
102102
},
103103

104-
runBinders : function()
104+
runBinders: function ()
105105
{
106-
while(this.binders.length > 0) {
106+
while (this.binders.length > 0)
107+
{
107108
var binder = this.binders.shift();
108-
if (this.group && this.group != binder.group ) continue;
109+
if (this.group && this.group != binder.group) continue;
109110
var value = binder.scope.$eval((binder.interpolate) ? $interpolate(binder.value) : binder.value);
110-
switch(binder.attr)
111+
switch (binder.attr)
111112
{
112113
case 'if':
113114
if (toBoolean(value))
@@ -167,7 +168,6 @@
167168
}
168169
}
169170
this.ran = true;
170-
this.binders = [];
171171
}
172172
};
173173

bindonce.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-bindonce",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"main": "bindonce.js",
55
"description": "Zero watchers binding directives for AngularJS",
66
"homepage": "https://github.com/Pasvaz/bindonce",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-bindonce",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"main": "bindonce.js",
55
"description": "Zero watchers binding directives for AngularJS",
66
"homepage": "https://github.com/Pasvaz/bindonce",

0 commit comments

Comments
 (0)