maqetta/maqetta — Issue #1355: Need to load "library" OAM props, even if no "require" references it.
Author: jhpedemonte
Created: 2011-12-13 17:33:43+00:00
State: open
Labels: Bug, Priority High, Visual Editor

Here's the "library" & "require" part of the **circle_oam.json** metadata file from the **Drawing Tools** library:

```js
"library": {
"shapes": {
"src": "../../../shapes"
},
"dojo": {
"src": "../../../dojo/dojo.js"
}
},
"require": [
{
"type": "javascript-module",
"format": "amd",
"src": "shapes/Circle",
"$library": "shapes"
},
{
"type": "css",
"src": "shapes.css",
"$library": "shapes"
}
],
```

Notice that, while there is a "dojo" library, none of the "require" members reference "dojo". In our current code, that means that **dojo.js** doesn't get loaded.

From my reading of the [OAM spec](http://openajax.org/member/wiki/OpenAjax_Metadata_1.0_Specification_Widget_Metadata#.3Clibrary.3E), it seems that this shouldn't be the case, and we should always be handling the "library" property.

@JonFerraiolo @peller