Permalink
Browse files

Changes the build process to use UglifyJS. v.0.9.6.

Squashed commit of the following:

commit 23586957925cc09f0240744c6aae06a069c84a26
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sun Jun 17 15:11:24 2012 -0700

    Documents the new build process.

commit ae823b3dd4c2935244737a50aceffd07443b4e0a
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sun Jun 17 14:59:42 2012 -0700

    Adds output for bundle file creation.

commit 943a342bfdf8a45910401395ecc9f52c7279a141
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sun Jun 17 14:49:11 2012 -0700

    Minor cleanup of build.js.

commit 0481d2f7fec17682b90e3e4c6a60849a01191584
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sun Jun 17 12:55:01 2012 -0700

    Fixes binary concatenation issues and regenerates binaries.

commit ec2b7e3e58f7f3faa3789461848ee9b8283d5ad9
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sun Jun 17 12:32:38 2012 -0700

    Reverts UglifyJS to 1.2.6.

commit ea34c3e61fde2596a7bdbfa5c809cdcb6ef207aa
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sun Jun 17 12:24:46 2012 -0700

    Leaves a note to self to change Uglify versions.

commit c627b0719c05ee53baafdafdb4d2bcf0d5918b29
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sun Jun 17 12:08:13 2012 -0700

    Reorganized build.js a bit.

commit b39a5611a0f5d6169d7fb18f4bf5856fc472e18a
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sun Jun 17 11:47:29 2012 -0700

    Cleans up some dead code in build.js.

commit 5c5a4001b252b9e744f97834bb8b335a821c859c
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sun Jun 17 11:23:37 2012 -0700

    Creates files for intro and outro.

commit 9e1a2caec67b0fdb57ad9d4c339eed75d7547a36
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 23:52:30 2012 -0700

    Fixes some concatenation issues.

commit 15ee108396091777d6784a1b4dd458185e66bad8
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 23:37:46 2012 -0700

    Starts on miscellaneous file operations in build.js.

commit eb4c20cb14f6c640578f0f43b37c10046276ad96
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 23:28:02 2012 -0700

    Fixes intros and outro issues with build.js.

commit a3f73e77cbf958fae63c6940e8a62748d8105bc9
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 23:03:05 2012 -0700

    Adds build date output.

commit 5fad917d5c14078840691cc30f95905bbdffe67c
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 22:56:55 2012 -0700

    Moves the license to its own file.

commit e328c7b5b949fbf74353b8889fe77b658dacaf91
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 22:44:53 2012 -0700

    Pulls over some versioning code from the Shifty build script.

commit 4c0b5c5dd9c5a958baab57fc513ef1c95195cd86
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 22:39:17 2012 -0700

    Gets basic file concatenation to work for build.js.

commit 79b76b98828d2e884a372d007f2d8faba45e50e4
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 22:32:32 2012 -0700

    Adds --ver option to build.js.

commit 13131f99122f42d6d7034fbab41222293c54beff
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 22:28:05 2012 -0700

    Adds some helpers and concatenation code to build.js.

commit f040b4eb1411afd77ad2cc7458c3184134ee2c1a
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 22:20:25 2012 -0700

    Gets started on preliminary build.js stuff.

commit 77d3f4b6d0e089d18fbfa74da0b3d204385ca710
Author: Jeremy Kahn <jeremyckahn@gmail.com>
Date:   Sat Jun 16 22:08:13 2012 -0700

    Adds npm modules for Uglify and Commander.
  • Loading branch information...
1 parent 81f4a7a commit 4d73b9545294c712959ce703fa3d82c08de23e12 @jeremyckahn jeremyckahn committed Jun 17, 2012
Showing with 37,274 additions and 160 deletions.
  1. +4 −9 README.md
  2. +142 −0 build.js
  3. +0 −74 build.sh
  4. +5 −38 dist/rekapi.bundle.min.js
  5. +4 −5 dist/rekapi.js
  6. +2 −33 dist/rekapi.min.js
  7. +6 −0 docs/upgrading.md
  8. +1 −0 node_modules/.bin/uglifyjs
  9. +4 −0 node_modules/commander/.npmignore
  10. +4 −0 node_modules/commander/.travis.yml
  11. +107 −0 node_modules/commander/History.md
  12. +7 −0 node_modules/commander/Makefile
  13. +262 −0 node_modules/commander/Readme.md
  14. +2 −0 node_modules/commander/index.js
  15. +1,026 −0 node_modules/commander/lib/commander.js
  16. +41 −0 node_modules/commander/package.json
  17. +4 −0 node_modules/uglify-js/.npmignore
  18. +981 −0 node_modules/uglify-js/README.html
  19. +578 −0 node_modules/uglify-js/README.org
  20. +332 −0 node_modules/uglify-js/bin/uglifyjs
  21. +75 −0 node_modules/uglify-js/docstyle.css
  22. +2,599 −0 node_modules/uglify-js/lib/consolidator.js
  23. +75 −0 node_modules/uglify-js/lib/object-ast.js
  24. +1,346 −0 node_modules/uglify-js/lib/parse-js.js
  25. +2,011 −0 node_modules/uglify-js/lib/process.js
  26. +73 −0 node_modules/uglify-js/lib/squeeze-more.js
  27. +30 −0 node_modules/uglify-js/package.json
  28. +24 −0 node_modules/uglify-js/package.json~
  29. +28 −0 node_modules/uglify-js/test/beautify.js
  30. +403 −0 node_modules/uglify-js/test/testparser.js
  31. +1 −0 node_modules/uglify-js/test/unit/compress/expected/array1.js
  32. +1 −0 node_modules/uglify-js/test/unit/compress/expected/array2.js
  33. +1 −0 node_modules/uglify-js/test/unit/compress/expected/array3.js
  34. +1 −0 node_modules/uglify-js/test/unit/compress/expected/array4.js
  35. +1 −0 node_modules/uglify-js/test/unit/compress/expected/assignment.js
  36. +1 −0 node_modules/uglify-js/test/unit/compress/expected/concatstring.js
  37. +1 −0 node_modules/uglify-js/test/unit/compress/expected/const.js
  38. +1 −0 node_modules/uglify-js/test/unit/compress/expected/empty-blocks.js
  39. +1 −0 node_modules/uglify-js/test/unit/compress/expected/forstatement.js
  40. +1 −0 node_modules/uglify-js/test/unit/compress/expected/if.js
  41. +1 −0 node_modules/uglify-js/test/unit/compress/expected/ifreturn.js
  42. +1 −0 node_modules/uglify-js/test/unit/compress/expected/ifreturn2.js
  43. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue10.js
  44. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue11.js
  45. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue13.js
  46. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue14.js
  47. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue16.js
  48. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue17.js
  49. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue20.js
  50. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue21.js
  51. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue25.js
  52. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue27.js
  53. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue278.js
  54. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue28.js
  55. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue29.js
  56. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue30.js
  57. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue34.js
  58. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue4.js
  59. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue48.js
  60. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue50.js
  61. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue53.js
  62. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue54.1.js
  63. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue68.js
  64. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue69.js
  65. +1 −0 node_modules/uglify-js/test/unit/compress/expected/issue9.js
  66. +1 −0 node_modules/uglify-js/test/unit/compress/expected/mangle.js
  67. +1 −0 node_modules/uglify-js/test/unit/compress/expected/null_string.js
  68. +1 −0 node_modules/uglify-js/test/unit/compress/expected/strict-equals.js
  69. +1 −0 node_modules/uglify-js/test/unit/compress/expected/var.js
  70. +1 −0 node_modules/uglify-js/test/unit/compress/expected/whitespace.js
  71. +1 −0 node_modules/uglify-js/test/unit/compress/expected/with.js
  72. +3 −0 node_modules/uglify-js/test/unit/compress/test/array1.js
  73. +4 −0 node_modules/uglify-js/test/unit/compress/test/array2.js
  74. +4 −0 node_modules/uglify-js/test/unit/compress/test/array3.js
  75. +6 −0 node_modules/uglify-js/test/unit/compress/test/array4.js
  76. +20 −0 node_modules/uglify-js/test/unit/compress/test/assignment.js
  77. +3 −0 node_modules/uglify-js/test/unit/compress/test/concatstring.js
  78. +5 −0 node_modules/uglify-js/test/unit/compress/test/const.js
  79. +4 −0 node_modules/uglify-js/test/unit/compress/test/empty-blocks.js
  80. +10 −0 node_modules/uglify-js/test/unit/compress/test/forstatement.js
  81. +6 −0 node_modules/uglify-js/test/unit/compress/test/if.js
  82. +9 −0 node_modules/uglify-js/test/unit/compress/test/ifreturn.js
  83. +16 −0 node_modules/uglify-js/test/unit/compress/test/ifreturn2.js
  84. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue10.js
  85. +3 −0 node_modules/uglify-js/test/unit/compress/test/issue11.js
  86. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue13.js
  87. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue14.js
  88. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue16.js
  89. +4 −0 node_modules/uglify-js/test/unit/compress/test/issue17.js
  90. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue20.js
  91. +6 −0 node_modules/uglify-js/test/unit/compress/test/issue21.js
  92. +7 −0 node_modules/uglify-js/test/unit/compress/test/issue25.js
  93. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue27.js
  94. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue278.js
  95. +3 −0 node_modules/uglify-js/test/unit/compress/test/issue28.js
  96. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue29.js
  97. +3 −0 node_modules/uglify-js/test/unit/compress/test/issue30.js
  98. +3 −0 node_modules/uglify-js/test/unit/compress/test/issue34.js
  99. +3 −0 node_modules/uglify-js/test/unit/compress/test/issue4.js
  100. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue48.js
  101. +9 −0 node_modules/uglify-js/test/unit/compress/test/issue50.js
  102. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue53.js
  103. +3 −0 node_modules/uglify-js/test/unit/compress/test/issue54.1.js
  104. +5 −0 node_modules/uglify-js/test/unit/compress/test/issue68.js
  105. +1 −0 node_modules/uglify-js/test/unit/compress/test/issue69.js
  106. +4 −0 node_modules/uglify-js/test/unit/compress/test/issue9.js
  107. +5 −0 node_modules/uglify-js/test/unit/compress/test/mangle.js
  108. +1 −0 node_modules/uglify-js/test/unit/compress/test/null_string.js
  109. +3 −0 node_modules/uglify-js/test/unit/compress/test/strict-equals.js
  110. +3 −0 node_modules/uglify-js/test/unit/compress/test/var.js
  111. +21 −0 node_modules/uglify-js/test/unit/compress/test/whitespace.js
  112. +2 −0 node_modules/uglify-js/test/unit/compress/test/with.js
  113. +55 −0 node_modules/uglify-js/test/unit/scripts.js
  114. +13 −0 node_modules/uglify-js/tmp/269.js
  115. +22,315 −0 node_modules/uglify-js/tmp/app.js
  116. +15 −0 node_modules/uglify-js/tmp/embed-tokens.js
  117. +26 −0 node_modules/uglify-js/tmp/goto.js
  118. +8 −0 node_modules/uglify-js/tmp/goto2.js
  119. +33 −0 node_modules/uglify-js/tmp/hoist.js
  120. +97 −0 node_modules/uglify-js/tmp/instrument.js
  121. +138 −0 node_modules/uglify-js/tmp/instrument2.js
  122. +8 −0 node_modules/uglify-js/tmp/liftvars.js
  123. +30 −0 node_modules/uglify-js/tmp/test.js
  124. +3,930 −0 node_modules/uglify-js/tmp/uglify-hangs.js
  125. +166 −0 node_modules/uglify-js/tmp/uglify-hangs2.js
  126. +18 −0 node_modules/uglify-js/uglify-js.js
  127. +1 −0 src/rekapi.intro.js
  128. +13 −0 src/rekapi.license.js
  129. +1 −0 src/rekapi.outro.js
  130. +1 −1 version.txt
View
@@ -157,20 +157,15 @@ The `--recursive` flag tells Git to download the submodules in addition to the
Rekapi files. You will need these submodules in order to build Rekapi or run
the tests.
-If you make a change to the Rekapi source and would like to build the project,
-just run this from the Rekapi root directory on the command line:
+Generating the Rekapi binary requires Node.js. From the Rekapi root directory:
````
-sh build.sh <version> [<local_compiler_path>]
+$: node build.js --ver <version>
````
`version` is whatever version you want to call the build. Rekapi uses the
-[SemVer](http://semver.org/) versioning scheme. This will generate any files
-you need and place them into the `dist/` directory. You can specify a local
-copy of the Google Closure compiler with `local_compiler_path`, if you have it.
-If you omit the `local_compiler_path` variable, then the script will `curl` out
-to the Closure compiler on the web. This will just work if you are on a Mac.
-On Linux, you may need run `sudo apt-get install curl`.
+[SemVer](http://semver.org/) versioning scheme. This will generate all the
+files you need and place them into the `dist/` directory.
It's also important to make sure you didn't break any tests in `tests/`. You
can take a quick look by opening `tests/test.all_unit_tests.html` in your
View
142 build.js
@@ -0,0 +1,142 @@
+// This script is inspired by the build script for Shifty, which was written by
+// Miller Medeiros.
+
+// --- SETTINGS --- //
+
+var
+ DIST_NAME = 'rekapi',
+ DIST_FOLDER = 'dist',
+ replacements = {
+ 'version' : null,
+ 'build_date' : (new Date()).toGMTString()
+ },
+ FILE_LIST = [
+ 'src/rekapi.license.js'
+ ,'src/rekapi.intro.js'
+ ,'src/rekapi.core.js'
+ ,'src/rekapi.actor.js'
+ ,'src/rekapi.keyframeprops.js'
+ ,'ext/canvas/rekapi.canvas.context.js'
+ ,'ext/canvas/rekapi.canvas.actor.js'
+ ,'ext/dom/rekapi.dom.actor.js'
+ ,'ext/to-css/rekapi.to-css.js'
+ ,'src/rekapi.init.js'
+ ,'src/rekapi.outro.js'];
+
+
+// --- SETUP --- //
+
+var
+ _cli = require('commander'),
+ _fs = require('fs'),
+ _path = require('path'),
+ _exec = require('child_process').exec,
+ _distBaseName = _path.join(__dirname, DIST_FOLDER, DIST_NAME),
+ _distFileName = _distBaseName + '.js',
+ _distFileNameMin = _distBaseName + '.min.js';
+ _distBundleName = _distBaseName + '.bundle.min.js';
+
+_cli
+ .version('0.1.1')
+ .option('--ver <build version>',
+ 'A string representing the semver build version to record in the source (eg. 5.0.2)')
+ .parse(process.argv);
+
+
+// --- HELPERS --- //
+
+/**
+ * Parse string and replace tokens delimited with '{{}}' with object data.
+ * @param {string} template String containing {{tokens}}.
+ * @param {object} data Object containing replacement values.
+ */
+function stache(template, data){
+ function replaceFn(match, prop){
+ return (prop in data)? data[prop] : '';
+ }
+ return template.replace(/\{\{(\w+)\}\}/g, replaceFn);
+}
+
+
+function contains(arr, val) {
+ return arr.indexOf(val) !== -1;
+}
+
+
+function echoFileSize(filename, explanatoryString) {
+ //should be called only after minification completed
+ _exec(
+ 'cat '+ filename +' | gzip -9f | wc -c',
+ function (error, stdout, stderr) {
+ if (error) {
+ console.log(stderr);
+ } else {
+ console.log(explanatoryString);
+ console.log(' The file size, minified and gzipped, is: '
+ + (stdout + '').replace(/[\s\n]/g, '') + ' bytes.');
+ }
+ }
+ );
+}
+
+
+// --- CONCAT --- //
+
+function getFileList() {
+ return FILE_LIST;
+}
+
+function concatFiles(fileList) {
+ var out = fileList.map(function(filePath){
+ return _fs.readFileSync(filePath);
+ });
+ return out.join('');
+}
+
+if (! _cli.ver ) {
+ console.log(' ERROR: Please provide a version number (with "--ver").');
+ process.exit(1); //exit with error
+}
+
+replacements.version = _cli.ver;
+_fs.writeFileSync(_distFileName,
+ stache(concatFiles(getFileList()), replacements));
+
+
+// --- MINIFICATION ---- //
+
+function getLicense(){
+ var srcLicense = _fs.readFileSync('src/rekapi.license.js', 'utf-8');
+ return stache(srcLicense, replacements);
+}
+
+var
+ uglifyJS = require('uglify-js'),
+ jsp = uglifyJS.parser,
+ pro = uglifyJS.uglify,
+ ast = jsp.parse( _fs.readFileSync(_distFileName, 'utf-8') );
+
+ast = pro.ast_mangle(ast);
+ast = pro.ast_squeeze(ast);
+
+_fs.writeFileSync(_distFileNameMin, getLicense() + pro.gen_code(ast) );
+
+echoFileSize(_distFileNameMin, ' Yay! Rekapi was built.');
+
+
+// --- VERSIONING --- //
+
+_exec('echo ' + replacements.version + ' > version.txt');
+
+
+// -- MISCELLANEOUS FILE OPS -- //
+_exec('cp lib/underscore/_.min.js dist/_.js');
+_exec('cp lib/shifty/dist/shifty.min.js dist/shifty.js');
+
+var underscoreCode = _fs.readFileSync('./lib/underscore/_.min.js', 'utf-8');
+var shiftyCode = _fs.readFileSync('./lib/shifty/dist/shifty.min.js', 'utf-8');
+var rekapiCode = _fs.readFileSync('./dist/rekapi.min.js', 'utf-8');
+var bin = [underscoreCode, shiftyCode, rekapiCode].join(';');
+
+_fs.writeFileSync(_distBundleName, getLicense() + bin );
+echoFileSize(_distBundleName, '\n Joy! The bundle file (Underscore + Shifty + Rekapi) was created.');
View
@@ -1,74 +0,0 @@
-#!/bin/bash
-
-# Call this script like this:
-# $: sh build.sh version_number [local_path_to_compiler]
-
-echo \
-"/*jslint browser: true, nomen: true, plusplus: true, undef: true, vars: true, white: true */
-/**
- * Rekapi - Rewritten Kapi. v${1}
- * https://github.com/jeremyckahn/rekapi
- *
- * By Jeremy Kahn (jeremyckahn@gmail.com), with significant contributions from
- * Franck Lecollinet
- *
- * Make fun keyframe animations with JavaScript.
- * Dependencies: Underscore.js (https://github.com/documentcloud/underscore),
- * Shifty.js (https://github.com/jeremyckahn/shifty).
- * MIT Lincense. This code free to use, modify, distribute and enjoy.
- */" | cat > /tmp/rekapi.header.js
-
-echo \
-";(function(global) {
-" | cat > /tmp/rekapi.iife-open.js
-
-echo \
-"} (this));" | cat > /tmp/rekapi.iife-close.js
-
-cat /tmp/rekapi.header.js \
- /tmp/rekapi.iife-open.js \
- src/rekapi.core.js \
- src/rekapi.actor.js \
- src/rekapi.keyframeprops.js \
- ext/canvas/rekapi.canvas.context.js \
- ext/canvas/rekapi.canvas.actor.js \
- ext/dom/rekapi.dom.actor.js \
- ext/to-css/rekapi.to-css.js \
- src/rekapi.init.js \
- /tmp/rekapi.iife-close.js \
- > dist/rekapi.js
-
-in=dist/rekapi.js
-out=/tmp/rekapi.compiled.js
-
-# If a local path to the Closure compiler was specified, use that.
-if [ $2 ]; then
- java -jar ${2} --js=$in --js_output_file=$out
-else
- # Otherwise curl out to Google's.
- curl -s \
- -d compilation_level=SIMPLE_OPTIMIZATIONS \
- -d output_format=text \
- -d output_info=compiled_code \
- --data-urlencode "js_code@${in}" \
- http://closure-compiler.appspot.com/compile \
- > $out
-fi
-
-cat /tmp/rekapi.header.js /tmp/rekapi.compiled.js > dist/rekapi.min.js
-cp lib/underscore/_.min.js dist/_.js
-cp lib/shifty/dist/shifty.min.js dist/shifty.js
-
-cat /tmp/rekapi.header.js > dist/rekapi.bundle.min.js
-cat dist/_.js >> dist/rekapi.bundle.min.js
-
-# Semicolon insertions fix bizarre Closure bugs. They separate the libraries.
-echo ";" >> dist/rekapi.bundle.min.js
-cat dist/shifty.js >> dist/rekapi.bundle.min.js
-echo ";" >> dist/rekapi.bundle.min.js
-cat dist/rekapi.min.js >> dist/rekapi.bundle.min.js
-
-echo 'Yay! Rekapi was built. The file size, minified and gzipped, is:'
-echo `cat dist/rekapi.min.js | gzip -9f | wc -c` "bytes"
-
-echo ${1} > version.txt
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
/*jslint browser: true, nomen: true, plusplus: true, undef: true, vars: true, white: true */
/**
- * Rekapi - Rewritten Kapi. v0.9.5
+ * Rekapi - Rewritten Kapi. v0.9.6 (Sun, 17 Jun 2012 22:10:37 GMT)
* https://github.com/jeremyckahn/rekapi
*
* By Jeremy Kahn (jeremyckahn@gmail.com), with significant contributions from
@@ -11,8 +11,7 @@
* Shifty.js (https://github.com/jeremyckahn/shifty).
* MIT Lincense. This code free to use, modify, distribute and enjoy.
*/
-;(function(global) {
-
+;(function (global) {
// REKAPI-GLOBAL METHODS
// These are global in development, but get wrapped in a closure at build-time.
@@ -290,8 +289,8 @@ var rekapiCore = function (context, _, Tweenable) {
/**
- * @type {{function}} Contains the context init function to be called in the
- * Kapi contstructor.
+ * @type {Object.<function>} Contains the context init function to be called
+ * in the Kapi contstructor.
*/
Kapi.prototype._contextInitHook = {};
Oops, something went wrong.

0 comments on commit 4d73b95

Please sign in to comment.