Skip to content

Commit

Permalink
Fix a couple more cases of bad require paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Oct 6, 2016
1 parent 1f117a1 commit b2a1172
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iphone/titanium/HyperloopModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ static TiObjectRef CreateJSClassFromModulePath (NSString *path, id obj, TiClassR
* returns a generic wrapper if not found
*/
static TiObjectRef CreateJSClassFromNSClass (NSString *framework, NSString *clsname, id obj, TiClassRef classRef) {
NSString *path = [NSString stringWithFormat:@"hyperloop/%@/%@", [framework lowercaseString], [clsname lowercaseString]];
NSString *path = [NSString stringWithFormat:@"/hyperloop/%@/%@", [framework lowercaseString], [clsname lowercaseString]];
return CreateJSClassFromModulePath(path, obj, classRef, YES);
}

Expand Down
2 changes: 1 addition & 1 deletion metabase/ios/lib/generate/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ Parser.write = function (dir, state, metabase) {
}
};
classgen.generate(dir, metabase, cls, state);
mappings[cls.name] = 'hyperloop/' + (cls.framework + '/' + cls.name).toLowerCase();
mappings[cls.name] = '/hyperloop/' + (cls.framework + '/' + cls.name).toLowerCase();
});
}

Expand Down
2 changes: 1 addition & 1 deletion metabase/ios/lib/generate/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ function getObjCReturnResult (value, name, returns, asPointer) {
}

function generateImport (name, fp) {
return '\t$imports.' + name + ' = require(\'hyperloop/' + fp.toLowerCase() + '\');';
return '\t$imports.' + name + ' = require(\'/hyperloop/' + fp.toLowerCase() + '\');';
}

function makeImports (json, imports) {
Expand Down

0 comments on commit b2a1172

Please sign in to comment.