Skip to content
Browse files

Default implementations for some getters / setters.

  • Loading branch information...
1 parent 3e9688f commit dc94505890eeeffe4544119432da5f0d61781801 @mbebenita mbebenita committed Apr 8, 2013
View
8 src/flash/display/DisplayObject.js
@@ -94,6 +94,8 @@ var DisplayObjectDefinition = (function () {
TRACE_SYMBOLS_INFO && this._updateTraceSymbolInfo();
this._updateCurrentTransform();
+
+ this._accessibilityProperties = null;
},
_updateTraceSymbolInfo: function () {
@@ -257,10 +259,12 @@ var DisplayObjectDefinition = (function () {
},
get accessibilityProperties() {
- return null;
+ somewhatImplemented("accessibilityProperties");
+ return this._accessibilityProperties;
},
set accessibilityProperties(val) {
- notImplemented();
+ somewhatImplemented("accessibilityProperties");
+ this._accessibilityProperties = val;
},
get alpha() {
return this._alpha;
View
7 src/flash/display/InteractiveObject.js
@@ -7,6 +7,7 @@ var InteractiveObjectDefinition = (function () {
this._tabEnabled = false;
this._focusRect = null;
+ this._contextMenu = null;
},
get accessibilityImplementation() {
@@ -16,10 +17,12 @@ var InteractiveObjectDefinition = (function () {
notImplemented();
},
get contextMenu() {
- return null;
+ somewhatImplemented("contextMenu");
+ return this._contextMenu;
},
set contextMenu(val) {
- notImplemented();
+ somewhatImplemented("contextMenu");
+ this._contextMenu = val;
},
get doubleClickEnabled() {
return this._doubleClickEnabled;
View
4 src/flash/display/NativeMenuItem.js
@@ -11,11 +11,11 @@ var NativeMenuItemDefinition = (function () {
instance: {
enabled: {
get: function enabled() { // (void) -> Boolean
- notImplemented("NativeMenuItem.enabled");
+ somewhatImplemented("NativeMenuItem.enabled");
return this._enabled;
},
set: function enabled(isSeparator) { // (isSeparator:Boolean) -> void
- notImplemented("NativeMenuItem.enabled");
+ somewhatImplemented("NativeMenuItem.enabled");
this._enabled = isSeparator;
}
}
View
1 src/flash/events/EventDispatcher.js
@@ -15,6 +15,7 @@ var EventDispatcherDefinition = (function () {
},
addEventListener: function (type, listener, useCapture, prio, useWeakReference) {
if (typeof listener !== 'function')
+ if (typeof listener !== 'function' || !type)
throw ArgumentError();
if (prio === undefined)
View
8 src/flash/ui/ContextMenu.js
@@ -17,21 +17,21 @@ var ContextMenuDefinition = (function () {
},
builtInItems: {
get: function builtInItems() { // (void) -> ContextMenuBuiltInItems
- notImplemented("ContextMenu.builtInItems");
+ somewhatImplemented("ContextMenu.builtInItems");
return this._builtInItems;
},
set: function builtInItems(value) { // (value:ContextMenuBuiltInItems) -> void
- notImplemented("ContextMenu.builtInItems");
+ somewhatImplemented("ContextMenu.builtInItems");
this._builtInItems = value;
}
},
customItems: {
get: function customItems() { // (void) -> Array
- notImplemented("ContextMenu.customItems");
+ somewhatImplemented("ContextMenu.customItems");
return this._customItems;
},
set: function customItems(value) { // (value:Array) -> void
- notImplemented("ContextMenu.customItems");
+ somewhatImplemented("ContextMenu.customItems");
this._customItems = value;
}
},
View
12 src/flash/ui/ContextMenuItem.js
@@ -11,31 +11,31 @@ var ContextMenuItemDefinition = (function () {
instance: {
caption: {
get: function caption() { // (void) -> String
- notImplemented("ContextMenuItem.caption");
+ somewhatImplemented("ContextMenuItem.caption");
return this._caption;
},
set: function caption(value) { // (value:String) -> void
- notImplemented("ContextMenuItem.caption");
+ somewhatImplemented("ContextMenuItem.caption");
this._caption = value;
}
},
separatorBefore: {
get: function separatorBefore() { // (void) -> Boolean
- notImplemented("ContextMenuItem.separatorBefore");
+ somewhatImplemented("ContextMenuItem.separatorBefore");
return this._separatorBefore;
},
set: function separatorBefore(value) { // (value:Boolean) -> void
- notImplemented("ContextMenuItem.separatorBefore");
+ somewhatImplemented("ContextMenuItem.separatorBefore");
this._separatorBefore = value;
}
},
visible: {
get: function visible() { // (void) -> Boolean
- notImplemented("ContextMenuItem.visible");
+ somewhatImplemented("ContextMenuItem.visible");
return this._visible;
},
set: function visible(value) { // (value:Boolean) -> void
- notImplemented("ContextMenuItem.visible");
+ somewhatImplemented("ContextMenuItem.visible");
this._visible = value;
}
}

0 comments on commit dc94505

Please sign in to comment.
Something went wrong with that request. Please try again.