Browse Source

Use packageAt:ifAbsent: in chunk exporter.

#packageAt: is deprecated.
Herbert Vojčík 7 years ago
parent
commit
035735f7c5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Web-Snippets.st
  2. 1 1
      src/Web.st

+ 1 - 1
src/Web-Snippets.st

@@ -1,5 +1,5 @@
 Smalltalk createPackage: 'Web-Snippets'!
-(Smalltalk packageAt: 'Web-Snippets') imports: {'amber/jquery/Wrappers-JQuery'. 'amber_core/Platform-DOM'}!
+(Smalltalk packageAt: 'Web-Snippets' ifAbsent: [ self error: 'Package not created: Web-Snippets' ]) imports: {'amber/jquery/Wrappers-JQuery'. 'amber_core/Platform-DOM'}!
 Object subclass: #HTMLSnippet
 	instanceVariableNames: 'snippets'
 	package: 'Web-Snippets'!

+ 1 - 1
src/Web.st

@@ -1,5 +1,5 @@
 Smalltalk createPackage: 'Web'!
-(Smalltalk packageAt: 'Web') imports: {'amber/jquery/Wrappers-JQuery'. 'amber_core/Platform-DOM'}!
+(Smalltalk packageAt: 'Web' ifAbsent: [ self error: 'Package not created: Web' ]) imports: {'amber/jquery/Wrappers-JQuery'. 'amber_core/Platform-DOM'}!
 Object subclass: #HTMLCanvas
 	instanceVariableNames: 'root'
 	package: 'Web'!