Skip to content

Commit

Permalink
FLUID-5284: Clean up
Browse files Browse the repository at this point in the history
Corrected a case where jshint ignore was temporarily allowing an error.
  • Loading branch information
jobara committed Apr 9, 2014
1 parent 1742bd0 commit 3c75201
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/framework/core/js/ModelTransformation.js
Expand Up @@ -367,12 +367,9 @@ var fluid = fluid || fluid_1_5;
}
};

fluid.model.transform.lookupType = function (typeName) {
fluid.model.transform.lookupType = function (typeName, transformSpec) {
if (!typeName) {
// TODO: jshint doesn't like that transformSpec is undefined
// This should either be cleaned up or a detailed explanation of
// why it is needed should be provided.
fluid.fail("Transformation record is missing a type name: ", transformSpec); // jshint ignore:line
fluid.fail("Transformation record is missing a type name: ", transformSpec);
}
if (typeName.indexOf(".") === -1) {
typeName = "fluid.transforms." + typeName;
Expand Down

0 comments on commit 3c75201

Please sign in to comment.