docs: function Layer () {
      Layer.superclass.constructor.call(this)
  
      var s = Director.sharedDirector.winSize
  
      this.isRelativeAnchorPoint = false
      this.anchorPoint = ccp(0.5, 0.5)
      this.contentSize = s
  
      if (!Director.sharedDirector.isTouchScreen) {
          events.addPropertyListener(this, 'isMouseEnabled', 'change', function () {
              if (this.isRunning) {
                  if (this.isMouseEnabled) {
                      EventDispatcher.sharedDispatcher.addMouseDelegate({delegate: this, priority: this.mouseDelegatePriority})
                  } else {
                      EventDispatcher.sharedDispatcher.removeMouseDelegate({delegate: this})
                  }
              }
          }.bind(this))
  
          events.addPropertyListener(this, 'isKeyboardEnabled', 'change', function () {
              if (this.isRunning) {
                  if (this.isKeyboardEnabled) {
                      EventDispatcher.sharedDispatcher.addKeyboardDelegate({delegate: this, priority: this.keyboardDelegatePriority})
                  } else {
                      EventDispatcher.sharedDispatcher.removeKeyboardDelegate({delegate: this})
                  }
              }
          }.bind(this))
      }
  }