Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

 

ActionScript

JavaScript + Closure annotation

Notes

dynamic

dynamic

[leave out]

All JS 'classes' are dynamic by nature, so there's no need for this keyword?

final

final

[leave out]

Is this a runtime attribute, or is it handled at compile time? If the latter, we can just leave it out as attempts to subclass this type are handled (blocked) on the AS side anyway?

internal

internal

[leave out]

Same as with 'final'?

override

Code Block

override function myFunction()


Code Block

/**
 * @override
 */
function myFunction()

 

 

private

private

Code Block

/**
 * @private
 */

 

 

protected

protected

Code Block

/**
 * @protected
 */

 

 

public

public

[leave out]

All JS entities are public by nature, so there's no need for this keyword?

static

static

 

No annotation needed. Add property or method to the object itself, not it's prototype. 

 

 

 



No Format

MyClass.myProperty

instead of 

No Format

MyClass.prototype.myProperty