-
- unlisten : function( type, arg1, arg2, arg3 ){
- type && arg1 && X_ViewPort_document.unlisten( type, arg1, arg2, arg3 );
- return X.Doc;
+
+ /**
+ * EventDispatcher.prototype.unlisten 参照
+ * @alias X.Doc.unlisten
+ */
+ 'unlisten' : function( type, arg1, arg2, arg3 ){
+ var f = X_Closure_classifyCallbackArgs( arg1, arg2, arg3 );
+
+ if( !f.cbKind ){
+ X_ViewPort_document[ 'unlisten' ]( type, this, arg1 );
+ } else
+ if( f.cbKind === X_CLOSURE_FUNC_ONLY ){
+ X_ViewPort_document[ 'unlisten' ]( type, this, f.func, f.supplement );
+ } else {
+ X_ViewPort_document[ 'unlisten' ]( type, arg1, arg2, arg3 );
+ };
+ return X[ 'Doc' ];
+ },
+
+ /**
+ * EventDispatcher.prototype.listening 参照
+ * @alias X.Doc.listening
+ */
+ 'listening' : function( type, arg1, arg2, arg3 ){
+ var f = X_Closure_classifyCallbackArgs( arg1, arg2, arg3 );
+
+ if( !f.cbKind ){
+ return X_ViewPort_document[ 'listening' ]( type, this, arg1 );
+ } else
+ if( f.cbKind === X_CLOSURE_FUNC_ONLY ){
+ return X_ViewPort_document[ 'listening' ]( type, this, f.func, f.supplement );
+ };
+ return X_ViewPort_document[ 'listening' ]( type, arg1, arg2, arg3 );