Skip to content

Commit

Permalink
Guess this was ment as an example.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenbs committed May 1, 2011
1 parent 5991b6c commit 4f796c0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/import.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
Crafty.import({
'0': {props: value},
'n': [
{c: "comp, list", image: ''}
]
});

/**@
* #Crafty.import
* @sign public void Crafty.import(String url[, String scene])
Expand All @@ -13,6 +6,16 @@ Crafty.import({
* @sign public void Crafty.import(Object sceneData)
* @param sceneData - Scene data generated from builder
* This method will load in scene data generated by the Crafty Builder.
*
* @example
* ~~~
* Crafty.import({
* '0': {props: value},
* 'n': [
* {c: "comp, list", image: ''}
* ]
* });
* ~~~
*/
Crafty.import = function(obj, scene) {
//if its a string, load the script file
Expand Down

0 comments on commit 4f796c0

Please sign in to comment.