123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- (function() {
- var factory = function (exports) {
- var $ = jQuery;
- exports.testPlugin = function(){
- alert("testPlugin");
- };
- exports.fn.testPluginMethodA = function() {
-
-
- alert("testPluginMethodA");
- };
- };
-
-
- if (typeof require === "function" && typeof exports === "object" && typeof module === "object")
- {
- module.exports = factory;
- }
- else if (typeof define === "function")
- {
- if (define.amd) {
- define(["editormd"], function(editormd) {
- factory(editormd);
- });
- } else {
- define(function(require) {
- var editormd = require("./../../editormd");
- factory(editormd);
- });
- }
- }
- else
- {
- factory(window.editormd);
- }
- })();
|