Skip to content

Commit

Permalink
Fixed <script> loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Jun 9, 2011
1 parent 47fc057 commit a6e9060
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 18 deletions.
4 changes: 4 additions & 0 deletions CHANGES
@@ -1,5 +1,9 @@
# vim:ts=4:sts=4:sw=4:et:tw=60

0.4.3
- Fixed <script> support that regressed with 0.4.2 because
of "use strict" in the module system multi-plexer.

0.4.2
- Added support for RequireJS (jburke)

Expand Down
8 changes: 7 additions & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "q",
"description": "A library for promises (CommonJS/Promises/A,B,D)",
"version": "0.4.2",
"version": "0.4.3",
"homepage": "http://github.com/kriskowal/q/",
"author": "Kris Kowal <kris@cixar.com> (http://github.com/kriskowal/)",
"contributors": [
Expand Down Expand Up @@ -31,6 +31,12 @@
"test": ">=0.0.7",
"event-queue": ">=0.0.1"
},
"devDependencies": {
"uglify-js": ">= 0.0.5"
},
"scripts": {
"prepublish": "uglifyjs -o q.min.js -nc q.js"
},
"overlay": {
"teleport": {
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions q-0.2.4.min.js

This file was deleted.

8 changes: 0 additions & 8 deletions q-0.4.0.min.js

This file was deleted.

4 changes: 2 additions & 2 deletions q.js
Expand Up @@ -11,7 +11,7 @@
*/

(function (definition, undefined) {
"use strict";

// This file will function properly as a <script> tag, or a module
// using CommonJS and NodeJS or RequireJS module formats. In
// Common/Node/RequireJS, the module exports the Q API and when
Expand All @@ -23,7 +23,7 @@
// replaced with a single-character.

// RequireJS
if (typeof define === "function" && define.amd) {
if (typeof define === "function") {
define(function (require, exports) {
definition(require, exports);
});
Expand Down
1 change: 1 addition & 0 deletions q.min.js

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

0 comments on commit a6e9060

Please sign in to comment.