Skip to content

Commit

Permalink
Merge pull request #29 from aogilvie/fix/viewNaming
Browse files Browse the repository at this point in the history
Fix/view naming
  • Loading branch information
aogilvie committed May 20, 2014
2 parents 63b36ac + 84bc2fc commit 27ece95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ - (void)createView:(CDVInvokedUrlCommand *)command {
//WizCanvasView *canvas = [[WizCanvasView alloc] initWithWindow:canvasView name:viewName sourceToLoad:src];
WizCanvasView *canvas = [[WizCanvasView alloc] initWithFrame:newRect];

// Boot canvasViewMessenger in Ejecta
[canvas evaluateScript:[NSString stringWithFormat:@"wizCanvasMessenger = new Ejecta.WizCanvasMessenger(\"%@\");", viewName]];

// Additional boot file
if (![src isEqualToString:@""]) {
if ([self validateUrl:src]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ - (id)initWithFrame:(CGRect)frame appFolder:(NSString *)folder {

// Load the initial JavaScript source files
[self loadScriptAtPath:EJECTA_BOOT_JS];

// Load wizViewMessenger
[self evaluateScript:[NSString stringWithFormat:@"wizCanvasMessenger = new Ejecta.WizCanvasMessenger(\"%@\");", @"newCanvas"]];
}
return self;
}
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="jp.wizcorp.phonegap.plugin.wizCanvasPlugin"
version="2.0.0">
version="2.0.1">

<name>Wizard Canvas Plugin</name>

Expand Down

0 comments on commit 27ece95

Please sign in to comment.