Skip to content

Commit

Permalink
Release new version
Browse files Browse the repository at this point in the history
  • Loading branch information
s0ber committed Aug 22, 2014
1 parent 6ddba62 commit 6788d4e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 94 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vtree",
"version": "0.1.6",
"version": "0.1.7",
"homepage": "https://github.com/s0ber/vtree",
"authors": [
"Sergey Shishkalov <[email protected]>"
Expand Down
92 changes: 1 addition & 91 deletions build/vtree.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@
};

Vtree.initNodesAsync = function() {
var AsyncFn;
AsyncFn = modula.require('vtree/async_fn');
return AsyncFn.addToCallQueue((function(_this) {
return function() {
var dfd;
Expand Down Expand Up @@ -150,92 +148,6 @@

}).call(this);

(function() {
var AsyncFn;

AsyncFn = (function() {
function AsyncFn(asyncFn) {
this.fn = asyncFn;
}

AsyncFn.prototype.done = function(callback) {
this.callback = callback;
if (this.isCalled) {
return this.callback();
}
};

AsyncFn.prototype.call = function() {
if (this.isCalled) {
return;
}
return this.fn().always((function(_this) {
return function() {
_this.isCalled = true;
if (_this.callback) {
return _this.callback();
}
};
})(this));
};

AsyncFn.addToCallQueue = function(fn) {
var asyncFn;
asyncFn = new AsyncFn(fn);
if (this.currentFn != null) {
this.currentFn.done((function(_this) {
return function() {
return asyncFn.call();
};
})(this));
} else {
asyncFn.call();
}
return this.currentFn = asyncFn;
};

AsyncFn.setImmediate = (function() {
var ID, head, onmessage, tail;
head = {};
tail = head;
ID = Math.random();
onmessage = function(e) {
var func;
if (e.data !== ID) {
return;
}
head = head.next;
func = head.func;
delete head.func;
return func();
};
if (window.addEventListener) {
window.addEventListener("message", onmessage, false);
} else {
window.attachEvent("onmessage", onmessage);
}
if (window.postMessage) {
return function(func) {
tail = tail.next = {
func: func
};
return window.postMessage(ID, "*");
};
} else {
return function(func) {
return setTimeout(func, 0);
};
}
})();

return AsyncFn;

})();

modula["export"]('vtree/async_fn', AsyncFn);

}).call(this);

(function() {
var Hooks,
__slice = [].slice;
Expand Down Expand Up @@ -941,9 +853,7 @@
}).call(this);

(function() {
var AsyncFn, DOM;

AsyncFn = modula.require('vtree/async_fn');
var DOM;

DOM = (function() {
function DOM() {}
Expand Down
2 changes: 1 addition & 1 deletion build/vtree.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vtree",
"version": "0.1.6-alpha",
"version": "0.1.7-alpha",
"author": "Sergey Shishkalov <[email protected]>",
"description": "Library for automated initialization of backbone views",
"devDependencies": {
Expand Down

0 comments on commit 6788d4e

Please sign in to comment.