Skip to content
  • This project
    • Loading...
  • Sign in

蔡永松 / fontweb-dc

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • fontweb-dc
  • ..
  • lib
  • GraphicManager.js
  • caiyongsong's avatar
    提交 · 479ac152
    479ac152
    caiyongsong committed 2020-07-27 20:50:57 +0800
GraphicManager.js 495 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

define([
    'dojo/_base/declare',
    'lib/BaseWidget',
], function(
    declare,
    BaseWidget
){
    var GM = null;
    var clazz = declare([BaseWidget], {
        type: 'widget',
        constructor: function (obj) {
            console.log("constructor: ");
        },
        startup: function () {
            console.log("startup");
        },
    });
    clazz.getInstance = function (a) {
        null === GM ? GM = new clazz(a) : null;
        return GM
    };
    return clazz;
});