dojo/dnd/Target.js

Maintainability

83.73

Lines of code

13

Created with Raphaël 2.1.002550751002015-1-52014-12-42014-12-3

2015-5-18
Maintainability: 83.73

Created with Raphaël 2.1.0051015202015-1-52014-12-42014-12-3

2015-5-18
Lines of Code: 13

Difficulty

5.75

Estimated Errors

0.06

Function weight

By Complexity

Created with Raphaël 2.1.0<anonymous>1

By SLOC

Created with Raphaël 2.1.0<anonymous>13
define([ "../_base/declare", "../dom-class", "./Source" ], function(declare, domClass, Source){
1
define([ "../_base/declare", "../dom-class", "./Source" ], function(declare, domClass, Source){
2
    return declare("dojo.dnd.Target", Source, {
3
        // summary:
4
        //      a Target object, which can be used as a DnD target
5
 
6
        constructor: function(/*===== node, params =====*/){
7
            // summary:
8
            //      a constructor of the Target --- see the `dojo/dnd/Source` constructor for details
9
            this.isSource = false;
10
            domClass.remove(this.node, "dojoDndSource");
11
        }
12
    });
13
});