Skip to content

Commit

Permalink
build 0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Sedivy committed Mar 10, 2015
1 parent fc56fcc commit c4f0e35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
10 changes: 3 additions & 7 deletions build/potion.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* potion - v0.9.1
* potion - v0.9.2
* Copyright (c) 2014, Jan Sedivy
*
* Compiled: 2015-02-22
* Compiled: 2015-03-10
*
* potion is licensed under the MIT License.
*/
Expand Down Expand Up @@ -5122,6 +5122,7 @@ Assets.prototype.load = function(type, url, callback) {

Assets.prototype._finishedOneFile = function() {
this._nextFile();
this.progress = this.loadedItemsCount / this.itemsCount;
this._thingsToLoad -= 1;
this.loadedItemsCount += 1;

Expand Down Expand Up @@ -5173,11 +5174,6 @@ Assets.prototype._nextFile = function() {

var request = this._xhr;

request.onprogress = function(e) {
var progress = e.loaded/e.total;
self.progress = self.loadedItemsCount/self.itemsCount + progress/self.itemsCount;
};

switch (type) {
case 'json':
request.open('GET', url, true);
Expand Down
Loading

0 comments on commit c4f0e35

Please sign in to comment.