Permalink
Browse files

Resolved issues exposed by jshint

  line 92, col 6, Missing semicolon.
  line 99, col 6, Missing semicolon.
  line 37, col 9, 'module' is not defined.
  line 37, col 34, 'global' is not defined.
  line 38, col 48, 'define' is not defined.
  line 40, col 9, 'define' is not defined.
  line 53, col 25, 'Float32Array' is not defined.
  line 54, col 25, 'Int32Array' is not defined.
  line 97, col 63, 'Float32Array' is not defined.
  line 100, col 5, 'determineMatrixArrayType' is not defined.
  line 2257, col 35, 'setMatrixArrayType' is not defined.
  line 2258, col 41, 'determineMatrixArrayType' is not defined.
  line 2269, col 29, 'setMatrixArrayType' is not defined.
  line 2270, col 35, 'determineMatrixArrayType' is not defined.
  • Loading branch information...
1 parent d279db5 commit e2f5a39b7f213b07443ca33ef52d6f3654376d76 @sinisterchipmunk sinisterchipmunk committed May 2, 2012
Showing with 5 additions and 3 deletions.
  1. +2 −1 Rakefile
  2. +3 −2 gl-matrix.js
View
@@ -58,6 +58,7 @@ Jshintrb::JshintTask.new :jshint do |t|
:undef => true,
:sub => true,
:strict => false,
- :white => false
+ :white => false,
+ :predef => [ 'module', 'global', 'Float32Array', 'Int32Array', 'define' ]
}
end
View
@@ -86,17 +86,18 @@
var MatrixArray = null;
// explicitly sets and returns the type of array to use within glMatrix
- root.setMatrixArrayType = function(type) {
+ function setMatrixArrayType(type) {
MatrixArray = type;
return MatrixArray;
}
// auto-detects and returns the best type of array to use within glMatrix, falling
// back to Array if typed arrays are unsupported
- root.determineMatrixArrayType = function() {
+ function determineMatrixArrayType() {
MatrixArray = (typeof Float32Array !== 'undefined') ? Float32Array : Array;
return MatrixArray;
}
+
determineMatrixArrayType();
/**

0 comments on commit e2f5a39

Please sign in to comment.