Skip to content

Commit

Permalink
fixing build tool - closes #83
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Aug 3, 2013
1 parent b30ce9a commit a655011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -209,6 +209,7 @@ URI.js is published under the [MIT license](http://www.opensource.org/licenses/m

### `[dev-version]` (master branch) ###

* fixing build tool - ([Issue #83](https://github.com/medialize/URI.js/issues/83))
* fixing for-loop to make closure compiler happy - ([Issue #93](https://github.com/medialize/URI.js/issues/93))
* adding [`URI.noConflict()`](http://medialize.github.io/URI.js/docs.html#static-noConflict) - ([Issue #84](https://github.com/medialize/URI.js/issue/84))
* fixing whitespace in code - ([Issue #84](https://github.com/medialize/URI.js/issue/84))
Expand Down
5 changes: 2 additions & 3 deletions build.js
Expand Up @@ -41,12 +41,11 @@ function build(files) {
};

function download(code) {
var bb = new BlobBuilder();
bb.append(code);
var blob = new Blob([code], {type: 'text\/javascript'});

var a = document.createElement('a');
a.download = 'URI.js';
a.href = window.URL.createObjectURL(bb.getBlob('text/javascript'));
a.href = window.URL.createObjectURL(blob);
a.textContent = 'Download';
a.dataset.downloadurl = ['text/javascript', a.download, a.href].join(':');

Expand Down

0 comments on commit a655011

Please sign in to comment.